index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRdsResourceSettingsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRdsResourceSettingsRequest} extends {@link RequestModel}
*
* <p>DescribeRdsResourceSettingsRequest</p>
*/
public class DescribeRdsResourceSettingsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceNiche")
@com.aliyun.core.annotation.Validation(required = true)
private String resourceNiche;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeRdsResourceSettingsRequest(Builder builder) {
super(builder);
this.ownerId = builder.ownerId;
this.resourceNiche = builder.resourceNiche;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRdsResourceSettingsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceNiche
*/
public String getResourceNiche() {
return this.resourceNiche;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeRdsResourceSettingsRequest, Builder> {
private Long ownerId;
private String resourceNiche;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeRdsResourceSettingsRequest request) {
super(request);
this.ownerId = request.ownerId;
this.resourceNiche = request.resourceNiche;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>This parameter is required.</p>
*/
public Builder resourceNiche(String resourceNiche) {
this.putQueryParameter("ResourceNiche", resourceNiche);
this.resourceNiche = resourceNiche;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeRdsResourceSettingsRequest build() {
return new DescribeRdsResourceSettingsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRdsResourceSettingsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRdsResourceSettingsResponse} extends {@link TeaModel}
*
* <p>DescribeRdsResourceSettingsResponse</p>
*/
public class DescribeRdsResourceSettingsResponse 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 DescribeRdsResourceSettingsResponseBody body;
private DescribeRdsResourceSettingsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRdsResourceSettingsResponse 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 DescribeRdsResourceSettingsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRdsResourceSettingsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRdsResourceSettingsResponseBody body);
@Override
DescribeRdsResourceSettingsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRdsResourceSettingsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRdsResourceSettingsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRdsResourceSettingsResponse 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(DescribeRdsResourceSettingsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRdsResourceSettingsResponse build() {
return new DescribeRdsResourceSettingsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRdsResourceSettingsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRdsResourceSettingsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRdsResourceSettingsResponseBody</p>
*/
public class DescribeRdsResourceSettingsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RdsInstanceResourceSettings")
private RdsInstanceResourceSettings rdsInstanceResourceSettings;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeRdsResourceSettingsResponseBody(Builder builder) {
this.rdsInstanceResourceSettings = builder.rdsInstanceResourceSettings;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRdsResourceSettingsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return rdsInstanceResourceSettings
*/
public RdsInstanceResourceSettings getRdsInstanceResourceSettings() {
return this.rdsInstanceResourceSettings;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private RdsInstanceResourceSettings rdsInstanceResourceSettings;
private String requestId;
private Builder() {
}
private Builder(DescribeRdsResourceSettingsResponseBody model) {
this.rdsInstanceResourceSettings = model.rdsInstanceResourceSettings;
this.requestId = model.requestId;
}
/**
* RdsInstanceResourceSettings.
*/
public Builder rdsInstanceResourceSettings(RdsInstanceResourceSettings rdsInstanceResourceSettings) {
this.rdsInstanceResourceSettings = rdsInstanceResourceSettings;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeRdsResourceSettingsResponseBody build() {
return new DescribeRdsResourceSettingsResponseBody(this);
}
}
/**
*
* {@link DescribeRdsResourceSettingsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRdsResourceSettingsResponseBody</p>
*/
public static class RdsInstanceResourceSetting extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EndDate")
private String endDate;
@com.aliyun.core.annotation.NameInMap("IsTop")
private String isTop;
@com.aliyun.core.annotation.NameInMap("NoticeBarContent")
private String noticeBarContent;
@com.aliyun.core.annotation.NameInMap("PoppedUpButtonText")
private String poppedUpButtonText;
@com.aliyun.core.annotation.NameInMap("PoppedUpButtonType")
private String poppedUpButtonType;
@com.aliyun.core.annotation.NameInMap("PoppedUpButtonUrl")
private String poppedUpButtonUrl;
@com.aliyun.core.annotation.NameInMap("PoppedUpContent")
private String poppedUpContent;
@com.aliyun.core.annotation.NameInMap("ResourceNiche")
private String resourceNiche;
@com.aliyun.core.annotation.NameInMap("StartDate")
private String startDate;
private RdsInstanceResourceSetting(Builder builder) {
this.endDate = builder.endDate;
this.isTop = builder.isTop;
this.noticeBarContent = builder.noticeBarContent;
this.poppedUpButtonText = builder.poppedUpButtonText;
this.poppedUpButtonType = builder.poppedUpButtonType;
this.poppedUpButtonUrl = builder.poppedUpButtonUrl;
this.poppedUpContent = builder.poppedUpContent;
this.resourceNiche = builder.resourceNiche;
this.startDate = builder.startDate;
}
public static Builder builder() {
return new Builder();
}
public static RdsInstanceResourceSetting create() {
return builder().build();
}
/**
* @return endDate
*/
public String getEndDate() {
return this.endDate;
}
/**
* @return isTop
*/
public String getIsTop() {
return this.isTop;
}
/**
* @return noticeBarContent
*/
public String getNoticeBarContent() {
return this.noticeBarContent;
}
/**
* @return poppedUpButtonText
*/
public String getPoppedUpButtonText() {
return this.poppedUpButtonText;
}
/**
* @return poppedUpButtonType
*/
public String getPoppedUpButtonType() {
return this.poppedUpButtonType;
}
/**
* @return poppedUpButtonUrl
*/
public String getPoppedUpButtonUrl() {
return this.poppedUpButtonUrl;
}
/**
* @return poppedUpContent
*/
public String getPoppedUpContent() {
return this.poppedUpContent;
}
/**
* @return resourceNiche
*/
public String getResourceNiche() {
return this.resourceNiche;
}
/**
* @return startDate
*/
public String getStartDate() {
return this.startDate;
}
public static final class Builder {
private String endDate;
private String isTop;
private String noticeBarContent;
private String poppedUpButtonText;
private String poppedUpButtonType;
private String poppedUpButtonUrl;
private String poppedUpContent;
private String resourceNiche;
private String startDate;
private Builder() {
}
private Builder(RdsInstanceResourceSetting model) {
this.endDate = model.endDate;
this.isTop = model.isTop;
this.noticeBarContent = model.noticeBarContent;
this.poppedUpButtonText = model.poppedUpButtonText;
this.poppedUpButtonType = model.poppedUpButtonType;
this.poppedUpButtonUrl = model.poppedUpButtonUrl;
this.poppedUpContent = model.poppedUpContent;
this.resourceNiche = model.resourceNiche;
this.startDate = model.startDate;
}
/**
* EndDate.
*/
public Builder endDate(String endDate) {
this.endDate = endDate;
return this;
}
/**
* IsTop.
*/
public Builder isTop(String isTop) {
this.isTop = isTop;
return this;
}
/**
* NoticeBarContent.
*/
public Builder noticeBarContent(String noticeBarContent) {
this.noticeBarContent = noticeBarContent;
return this;
}
/**
* PoppedUpButtonText.
*/
public Builder poppedUpButtonText(String poppedUpButtonText) {
this.poppedUpButtonText = poppedUpButtonText;
return this;
}
/**
* PoppedUpButtonType.
*/
public Builder poppedUpButtonType(String poppedUpButtonType) {
this.poppedUpButtonType = poppedUpButtonType;
return this;
}
/**
* PoppedUpButtonUrl.
*/
public Builder poppedUpButtonUrl(String poppedUpButtonUrl) {
this.poppedUpButtonUrl = poppedUpButtonUrl;
return this;
}
/**
* PoppedUpContent.
*/
public Builder poppedUpContent(String poppedUpContent) {
this.poppedUpContent = poppedUpContent;
return this;
}
/**
* ResourceNiche.
*/
public Builder resourceNiche(String resourceNiche) {
this.resourceNiche = resourceNiche;
return this;
}
/**
* StartDate.
*/
public Builder startDate(String startDate) {
this.startDate = startDate;
return this;
}
public RdsInstanceResourceSetting build() {
return new RdsInstanceResourceSetting(this);
}
}
}
/**
*
* {@link DescribeRdsResourceSettingsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRdsResourceSettingsResponseBody</p>
*/
public static class RdsInstanceResourceSettings extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RdsInstanceResourceSetting")
private java.util.List<RdsInstanceResourceSetting> rdsInstanceResourceSetting;
private RdsInstanceResourceSettings(Builder builder) {
this.rdsInstanceResourceSetting = builder.rdsInstanceResourceSetting;
}
public static Builder builder() {
return new Builder();
}
public static RdsInstanceResourceSettings create() {
return builder().build();
}
/**
* @return rdsInstanceResourceSetting
*/
public java.util.List<RdsInstanceResourceSetting> getRdsInstanceResourceSetting() {
return this.rdsInstanceResourceSetting;
}
public static final class Builder {
private java.util.List<RdsInstanceResourceSetting> rdsInstanceResourceSetting;
private Builder() {
}
private Builder(RdsInstanceResourceSettings model) {
this.rdsInstanceResourceSetting = model.rdsInstanceResourceSetting;
}
/**
* RdsInstanceResourceSetting.
*/
public Builder rdsInstanceResourceSetting(java.util.List<RdsInstanceResourceSetting> rdsInstanceResourceSetting) {
this.rdsInstanceResourceSetting = rdsInstanceResourceSetting;
return this;
}
public RdsInstanceResourceSettings build() {
return new RdsInstanceResourceSettings(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeReadDBInstanceDelayRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReadDBInstanceDelayRequest} extends {@link RequestModel}
*
* <p>DescribeReadDBInstanceDelayRequest</p>
*/
public class DescribeReadDBInstanceDelayRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ReadInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String readInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
private DescribeReadDBInstanceDelayRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.readInstanceId = builder.readInstanceId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityToken = builder.securityToken;
}
public static Builder builder() {
return new Builder();
}
public static DescribeReadDBInstanceDelayRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return readInstanceId
*/
public String getReadInstanceId() {
return this.readInstanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
public static final class Builder extends Request.Builder<DescribeReadDBInstanceDelayRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String readInstanceId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String securityToken;
private Builder() {
super();
}
private Builder(DescribeReadDBInstanceDelayRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.readInstanceId = request.readInstanceId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityToken = request.securityToken;
}
/**
* <p>The primary instance ID. You can call the DescribeDBInstances operation to query the primary instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-bp*****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The read-only instance ID. You can call the DescribeDBInstances operation to query the read-only instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rr-bp*****</p>
*/
public Builder readInstanceId(String readInstanceId) {
this.putQueryParameter("ReadInstanceId", readInstanceId);
this.readInstanceId = readInstanceId;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
@Override
public DescribeReadDBInstanceDelayRequest build() {
return new DescribeReadDBInstanceDelayRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeReadDBInstanceDelayResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReadDBInstanceDelayResponse} extends {@link TeaModel}
*
* <p>DescribeReadDBInstanceDelayResponse</p>
*/
public class DescribeReadDBInstanceDelayResponse 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 DescribeReadDBInstanceDelayResponseBody body;
private DescribeReadDBInstanceDelayResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeReadDBInstanceDelayResponse 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 DescribeReadDBInstanceDelayResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeReadDBInstanceDelayResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeReadDBInstanceDelayResponseBody body);
@Override
DescribeReadDBInstanceDelayResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeReadDBInstanceDelayResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeReadDBInstanceDelayResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeReadDBInstanceDelayResponse 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(DescribeReadDBInstanceDelayResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeReadDBInstanceDelayResponse build() {
return new DescribeReadDBInstanceDelayResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeReadDBInstanceDelayResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReadDBInstanceDelayResponseBody} extends {@link TeaModel}
*
* <p>DescribeReadDBInstanceDelayResponseBody</p>
*/
public class DescribeReadDBInstanceDelayResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DelayTime")
private Integer delayTime;
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("ReadDBInstanceId")
private String readDBInstanceId;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeReadDBInstanceDelayResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.delayTime = builder.delayTime;
this.items = builder.items;
this.readDBInstanceId = builder.readDBInstanceId;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeReadDBInstanceDelayResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return delayTime
*/
public Integer getDelayTime() {
return this.delayTime;
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return readDBInstanceId
*/
public String getReadDBInstanceId() {
return this.readDBInstanceId;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String DBInstanceId;
private Integer delayTime;
private Items items;
private String readDBInstanceId;
private String requestId;
private Builder() {
}
private Builder(DescribeReadDBInstanceDelayResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.delayTime = model.delayTime;
this.items = model.items;
this.readDBInstanceId = model.readDBInstanceId;
this.requestId = model.requestId;
}
/**
* <p>The primary instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-bp*****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The latency of data replication. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder delayTime(Integer delayTime) {
this.delayTime = delayTime;
return this;
}
/**
* <p>The latency information.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The read-only instance ID.</p>
*
* <strong>example:</strong>
* <p>rr-bp*****</p>
*/
public Builder readDBInstanceId(String readDBInstanceId) {
this.readDBInstanceId = readDBInstanceId;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F1BDDEA8-452D-450B-AB10-CD5C5BAFC5DF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeReadDBInstanceDelayResponseBody build() {
return new DescribeReadDBInstanceDelayResponseBody(this);
}
}
/**
*
* {@link DescribeReadDBInstanceDelayResponseBody} extends {@link TeaModel}
*
* <p>DescribeReadDBInstanceDelayResponseBody</p>
*/
public static class ReadDBInstanceNames extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ReadDBInstanceName")
private java.util.List<String> readDBInstanceName;
private ReadDBInstanceNames(Builder builder) {
this.readDBInstanceName = builder.readDBInstanceName;
}
public static Builder builder() {
return new Builder();
}
public static ReadDBInstanceNames create() {
return builder().build();
}
/**
* @return readDBInstanceName
*/
public java.util.List<String> getReadDBInstanceName() {
return this.readDBInstanceName;
}
public static final class Builder {
private java.util.List<String> readDBInstanceName;
private Builder() {
}
private Builder(ReadDBInstanceNames model) {
this.readDBInstanceName = model.readDBInstanceName;
}
/**
* ReadDBInstanceName.
*/
public Builder readDBInstanceName(java.util.List<String> readDBInstanceName) {
this.readDBInstanceName = readDBInstanceName;
return this;
}
public ReadDBInstanceNames build() {
return new ReadDBInstanceNames(this);
}
}
}
/**
*
* {@link DescribeReadDBInstanceDelayResponseBody} extends {@link TeaModel}
*
* <p>DescribeReadDBInstanceDelayResponseBody</p>
*/
public static class ReadDelayTimes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ReadDelayTime")
private java.util.List<String> readDelayTime;
private ReadDelayTimes(Builder builder) {
this.readDelayTime = builder.readDelayTime;
}
public static Builder builder() {
return new Builder();
}
public static ReadDelayTimes create() {
return builder().build();
}
/**
* @return readDelayTime
*/
public java.util.List<String> getReadDelayTime() {
return this.readDelayTime;
}
public static final class Builder {
private java.util.List<String> readDelayTime;
private Builder() {
}
private Builder(ReadDelayTimes model) {
this.readDelayTime = model.readDelayTime;
}
/**
* ReadDelayTime.
*/
public Builder readDelayTime(java.util.List<String> readDelayTime) {
this.readDelayTime = readDelayTime;
return this;
}
public ReadDelayTimes build() {
return new ReadDelayTimes(this);
}
}
}
/**
*
* {@link DescribeReadDBInstanceDelayResponseBody} extends {@link TeaModel}
*
* <p>DescribeReadDBInstanceDelayResponseBody</p>
*/
public static class ReadonlyInstanceDelay extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FlushLag")
private String flushLag;
@com.aliyun.core.annotation.NameInMap("FlushLatency")
private String flushLatency;
@com.aliyun.core.annotation.NameInMap("ReadDBInstanceName")
private String readDBInstanceName;
@com.aliyun.core.annotation.NameInMap("ReplayLag")
private String replayLag;
@com.aliyun.core.annotation.NameInMap("ReplayLatency")
private String replayLatency;
@com.aliyun.core.annotation.NameInMap("SendLatency")
private String sendLatency;
@com.aliyun.core.annotation.NameInMap("WriteLag")
private String writeLag;
@com.aliyun.core.annotation.NameInMap("WriteLatency")
private String writeLatency;
private ReadonlyInstanceDelay(Builder builder) {
this.flushLag = builder.flushLag;
this.flushLatency = builder.flushLatency;
this.readDBInstanceName = builder.readDBInstanceName;
this.replayLag = builder.replayLag;
this.replayLatency = builder.replayLatency;
this.sendLatency = builder.sendLatency;
this.writeLag = builder.writeLag;
this.writeLatency = builder.writeLatency;
}
public static Builder builder() {
return new Builder();
}
public static ReadonlyInstanceDelay create() {
return builder().build();
}
/**
* @return flushLag
*/
public String getFlushLag() {
return this.flushLag;
}
/**
* @return flushLatency
*/
public String getFlushLatency() {
return this.flushLatency;
}
/**
* @return readDBInstanceName
*/
public String getReadDBInstanceName() {
return this.readDBInstanceName;
}
/**
* @return replayLag
*/
public String getReplayLag() {
return this.replayLag;
}
/**
* @return replayLatency
*/
public String getReplayLatency() {
return this.replayLatency;
}
/**
* @return sendLatency
*/
public String getSendLatency() {
return this.sendLatency;
}
/**
* @return writeLag
*/
public String getWriteLag() {
return this.writeLag;
}
/**
* @return writeLatency
*/
public String getWriteLatency() {
return this.writeLatency;
}
public static final class Builder {
private String flushLag;
private String flushLatency;
private String readDBInstanceName;
private String replayLag;
private String replayLatency;
private String sendLatency;
private String writeLag;
private String writeLatency;
private Builder() {
}
private Builder(ReadonlyInstanceDelay model) {
this.flushLag = model.flushLag;
this.flushLatency = model.flushLatency;
this.readDBInstanceName = model.readDBInstanceName;
this.replayLag = model.replayLag;
this.replayLatency = model.replayLatency;
this.sendLatency = model.sendLatency;
this.writeLag = model.writeLag;
this.writeLatency = model.writeLatency;
}
/**
* <p>The duration that is allowed for the latency in the persistence of WAL data. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder flushLag(String flushLag) {
this.flushLag = flushLag;
return this;
}
/**
* <p>The data size that is allowed for the latency in the persistence of WAL data. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder flushLatency(String flushLatency) {
this.flushLatency = flushLatency;
return this;
}
/**
* <p>The read-only instance ID.</p>
*
* <strong>example:</strong>
* <p>rr-bp*****</p>
*/
public Builder readDBInstanceName(String readDBInstanceName) {
this.readDBInstanceName = readDBInstanceName;
return this;
}
/**
* <p>The duration that is allowed for the latency in the playback of WAL data. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder replayLag(String replayLag) {
this.replayLag = replayLag;
return this;
}
/**
* <p>The data size that is allowed for the latency in the playback of WAL data. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder replayLatency(String replayLatency) {
this.replayLatency = replayLatency;
return this;
}
/**
* <p>The data size that is allowed for the latency in the sending of WAL data. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder sendLatency(String sendLatency) {
this.sendLatency = sendLatency;
return this;
}
/**
* <p>The duration that is allowed for the latency in the write-back of WAL data. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder writeLag(String writeLag) {
this.writeLag = writeLag;
return this;
}
/**
* <p>The data size that is allowed for the latency in the write-back of WAL data. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder writeLatency(String writeLatency) {
this.writeLatency = writeLatency;
return this;
}
public ReadonlyInstanceDelay build() {
return new ReadonlyInstanceDelay(this);
}
}
}
/**
*
* {@link DescribeReadDBInstanceDelayResponseBody} extends {@link TeaModel}
*
* <p>DescribeReadDBInstanceDelayResponseBody</p>
*/
public static class ItemsReadonlyInstanceDelay extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ReadonlyInstanceDelay")
private java.util.List<ReadonlyInstanceDelay> readonlyInstanceDelay;
private ItemsReadonlyInstanceDelay(Builder builder) {
this.readonlyInstanceDelay = builder.readonlyInstanceDelay;
}
public static Builder builder() {
return new Builder();
}
public static ItemsReadonlyInstanceDelay create() {
return builder().build();
}
/**
* @return readonlyInstanceDelay
*/
public java.util.List<ReadonlyInstanceDelay> getReadonlyInstanceDelay() {
return this.readonlyInstanceDelay;
}
public static final class Builder {
private java.util.List<ReadonlyInstanceDelay> readonlyInstanceDelay;
private Builder() {
}
private Builder(ItemsReadonlyInstanceDelay model) {
this.readonlyInstanceDelay = model.readonlyInstanceDelay;
}
/**
* ReadonlyInstanceDelay.
*/
public Builder readonlyInstanceDelay(java.util.List<ReadonlyInstanceDelay> readonlyInstanceDelay) {
this.readonlyInstanceDelay = readonlyInstanceDelay;
return this;
}
public ItemsReadonlyInstanceDelay build() {
return new ItemsReadonlyInstanceDelay(this);
}
}
}
/**
*
* {@link DescribeReadDBInstanceDelayResponseBody} extends {@link TeaModel}
*
* <p>DescribeReadDBInstanceDelayResponseBody</p>
*/
public static class ItemsItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("ReadDBInstanceNames")
private ReadDBInstanceNames readDBInstanceNames;
@com.aliyun.core.annotation.NameInMap("ReadDelayTimes")
private ReadDelayTimes readDelayTimes;
@com.aliyun.core.annotation.NameInMap("ReadonlyInstanceDelay")
private ItemsReadonlyInstanceDelay readonlyInstanceDelay;
private ItemsItems(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.readDBInstanceNames = builder.readDBInstanceNames;
this.readDelayTimes = builder.readDelayTimes;
this.readonlyInstanceDelay = builder.readonlyInstanceDelay;
}
public static Builder builder() {
return new Builder();
}
public static ItemsItems create() {
return builder().build();
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return readDBInstanceNames
*/
public ReadDBInstanceNames getReadDBInstanceNames() {
return this.readDBInstanceNames;
}
/**
* @return readDelayTimes
*/
public ReadDelayTimes getReadDelayTimes() {
return this.readDelayTimes;
}
/**
* @return readonlyInstanceDelay
*/
public ItemsReadonlyInstanceDelay getReadonlyInstanceDelay() {
return this.readonlyInstanceDelay;
}
public static final class Builder {
private String DBInstanceId;
private ReadDBInstanceNames readDBInstanceNames;
private ReadDelayTimes readDelayTimes;
private ItemsReadonlyInstanceDelay readonlyInstanceDelay;
private Builder() {
}
private Builder(ItemsItems model) {
this.DBInstanceId = model.DBInstanceId;
this.readDBInstanceNames = model.readDBInstanceNames;
this.readDelayTimes = model.readDelayTimes;
this.readonlyInstanceDelay = model.readonlyInstanceDelay;
}
/**
* <p>The primary instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-bp*****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>An array that consists of information about the read-only instance.</p>
*/
public Builder readDBInstanceNames(ReadDBInstanceNames readDBInstanceNames) {
this.readDBInstanceNames = readDBInstanceNames;
return this;
}
/**
* <p>The latency of data replication.</p>
*/
public Builder readDelayTimes(ReadDelayTimes readDelayTimes) {
this.readDelayTimes = readDelayTimes;
return this;
}
/**
* <p>The information about the write-ahead log (WAL) latency.</p>
* <blockquote>
* <p> This parameter is returned only when the primary instance runs PostgreSQL.</p>
* </blockquote>
*/
public Builder readonlyInstanceDelay(ItemsReadonlyInstanceDelay readonlyInstanceDelay) {
this.readonlyInstanceDelay = readonlyInstanceDelay;
return this;
}
public ItemsItems build() {
return new ItemsItems(this);
}
}
}
/**
*
* {@link DescribeReadDBInstanceDelayResponseBody} extends {@link TeaModel}
*
* <p>DescribeReadDBInstanceDelayResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<ItemsItems> items;
private Items(Builder builder) {
this.items = builder.items;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return items
*/
public java.util.List<ItemsItems> getItems() {
return this.items;
}
public static final class Builder {
private java.util.List<ItemsItems> items;
private Builder() {
}
private Builder(Items model) {
this.items = model.items;
}
/**
* <p>The latency information.</p>
*/
public Builder items(java.util.List<ItemsItems> items) {
this.items = items;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRegionInfosRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRegionInfosRequest} extends {@link RequestModel}
*
* <p>DescribeRegionInfosRequest</p>
*/
public class DescribeRegionInfosRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeRegionInfosRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRegionInfosRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeRegionInfosRequest, Builder> {
private String clientToken;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeRegionInfosRequest request) {
super(request);
this.clientToken = request.clientToken;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the generated token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCz*****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeRegionInfosRequest build() {
return new DescribeRegionInfosRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRegionInfosResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRegionInfosResponse} extends {@link TeaModel}
*
* <p>DescribeRegionInfosResponse</p>
*/
public class DescribeRegionInfosResponse 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 DescribeRegionInfosResponseBody body;
private DescribeRegionInfosResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRegionInfosResponse 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 DescribeRegionInfosResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRegionInfosResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRegionInfosResponseBody body);
@Override
DescribeRegionInfosResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRegionInfosResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRegionInfosResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRegionInfosResponse 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(DescribeRegionInfosResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRegionInfosResponse build() {
return new DescribeRegionInfosResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRegionInfosResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRegionInfosResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionInfosResponseBody</p>
*/
public class DescribeRegionInfosResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Regions")
private Regions regions;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeRegionInfosResponseBody(Builder builder) {
this.regions = builder.regions;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRegionInfosResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regions
*/
public Regions getRegions() {
return this.regions;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Regions regions;
private String requestId;
private Builder() {
}
private Builder(DescribeRegionInfosResponseBody model) {
this.regions = model.regions;
this.requestId = model.requestId;
}
/**
* <p>A list of regions.</p>
*/
public Builder regions(Regions regions) {
this.regions = regions;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>5414A4E5-4C36-4461-95FC-************</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeRegionInfosResponseBody build() {
return new DescribeRegionInfosResponseBody(this);
}
}
/**
*
* {@link DescribeRegionInfosResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionInfosResponseBody</p>
*/
public static class RDSRegion extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private RDSRegion(Builder builder) {
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static RDSRegion create() {
return builder().build();
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder {
private String regionId;
private Builder() {
}
private Builder(RDSRegion model) {
this.regionId = model.regionId;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
public RDSRegion build() {
return new RDSRegion(this);
}
}
}
/**
*
* {@link DescribeRegionInfosResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionInfosResponseBody</p>
*/
public static class Regions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RDSRegion")
private java.util.List<RDSRegion> RDSRegion;
private Regions(Builder builder) {
this.RDSRegion = builder.RDSRegion;
}
public static Builder builder() {
return new Builder();
}
public static Regions create() {
return builder().build();
}
/**
* @return RDSRegion
*/
public java.util.List<RDSRegion> getRDSRegion() {
return this.RDSRegion;
}
public static final class Builder {
private java.util.List<RDSRegion> RDSRegion;
private Builder() {
}
private Builder(Regions model) {
this.RDSRegion = model.RDSRegion;
}
/**
* RDSRegion.
*/
public Builder RDSRegion(java.util.List<RDSRegion> RDSRegion) {
this.RDSRegion = RDSRegion;
return this;
}
public Regions build() {
return new Regions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRegionsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRegionsRequest} extends {@link RequestModel}
*
* <p>DescribeRegionsRequest</p>
*/
public class DescribeRegionsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AcceptLanguage")
private String acceptLanguage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeRegionsRequest(Builder builder) {
super(builder);
this.acceptLanguage = builder.acceptLanguage;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRegionsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return acceptLanguage
*/
public String getAcceptLanguage() {
return this.acceptLanguage;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeRegionsRequest, Builder> {
private String acceptLanguage;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeRegionsRequest request) {
super(request);
this.acceptLanguage = request.acceptLanguage;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The language that is used for the return value of the <strong>LocalName</strong> parameter. Valid values:</p>
* <ul>
* <li><strong>zh-CN</strong>: Chinese</li>
* <li><strong>en-US</strong>: English</li>
* </ul>
* <p>Default value: <strong>en-US</strong>.</p>
*
* <strong>example:</strong>
* <p>en-US</p>
*/
public Builder acceptLanguage(String acceptLanguage) {
this.putQueryParameter("AcceptLanguage", acceptLanguage);
this.acceptLanguage = acceptLanguage;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeRegionsRequest build() {
return new DescribeRegionsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRegionsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRegionsResponse} extends {@link TeaModel}
*
* <p>DescribeRegionsResponse</p>
*/
public class DescribeRegionsResponse extends Response {
@com.aliyun.core.annotation.NameInMap("headers")
private java.util.Map<String, String> headers;
@com.aliyun.core.annotation.NameInMap("statusCode")
private Integer statusCode;
@com.aliyun.core.annotation.NameInMap("body")
private DescribeRegionsResponseBody body;
private DescribeRegionsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRegionsResponse create() {
return new BuilderImpl().build();
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
/**
* @return headers
*/
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
/**
* @return statusCode
*/
public Integer getStatusCode() {
return this.statusCode;
}
/**
* @return body
*/
public DescribeRegionsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRegionsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRegionsResponseBody body);
@Override
DescribeRegionsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRegionsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRegionsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRegionsResponse response) {
super(response);
this.headers = response.headers;
this.statusCode = response.statusCode;
this.body = response.body;
}
/**
* headers.
*/
@Override
public Builder headers(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
/**
* statusCode.
*/
@Override
public Builder statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* body.
*/
@Override
public Builder body(DescribeRegionsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRegionsResponse build() {
return new DescribeRegionsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRegionsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public class DescribeRegionsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Regions")
private Regions regions;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeRegionsResponseBody(Builder builder) {
this.regions = builder.regions;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRegionsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regions
*/
public Regions getRegions() {
return this.regions;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Regions regions;
private String requestId;
private Builder() {
}
private Builder(DescribeRegionsResponseBody model) {
this.regions = model.regions;
this.requestId = model.requestId;
}
/**
* <p>The available regions and zones.</p>
*/
public Builder regions(Regions regions) {
this.regions = regions;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1AD222E9-E606-4A42-BF6D-8A4442913CEF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeRegionsResponseBody build() {
return new DescribeRegionsResponseBody(this);
}
}
/**
*
* {@link DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public static class RDSRegion extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LocalName")
private String localName;
@com.aliyun.core.annotation.NameInMap("RegionEndpoint")
private String regionEndpoint;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
@com.aliyun.core.annotation.NameInMap("ZoneName")
private String zoneName;
private RDSRegion(Builder builder) {
this.localName = builder.localName;
this.regionEndpoint = builder.regionEndpoint;
this.regionId = builder.regionId;
this.zoneId = builder.zoneId;
this.zoneName = builder.zoneName;
}
public static Builder builder() {
return new Builder();
}
public static RDSRegion create() {
return builder().build();
}
/**
* @return localName
*/
public String getLocalName() {
return this.localName;
}
/**
* @return regionEndpoint
*/
public String getRegionEndpoint() {
return this.regionEndpoint;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
/**
* @return zoneName
*/
public String getZoneName() {
return this.zoneName;
}
public static final class Builder {
private String localName;
private String regionEndpoint;
private String regionId;
private String zoneId;
private String zoneName;
private Builder() {
}
private Builder(RDSRegion model) {
this.localName = model.localName;
this.regionEndpoint = model.regionEndpoint;
this.regionId = model.regionId;
this.zoneId = model.zoneId;
this.zoneName = model.zoneName;
}
/**
* <p>The region name. The return value of this parameter is in the language that is specified by the <strong>AcceptLanguage</strong> parameter. For example, if the value of the RegionId parameter in the response is cn-hangzhou, the following values are returned for the LocalName parameter:</p>
* <ul>
* <li>If the value of the <strong>AcceptLanguage</strong> parameter is <strong>zh-CN</strong>, the value 1()is returned for the LocalName parameter.</li>
* <li>If the value of the <strong>AcceptLanguage</strong> parameter is <strong>en-US</strong>, the value China (Hangzhou) is returned for the LocalName parameter.</li>
* </ul>
*
* <strong>example:</strong>
* <p>China (Hangzhou)</p>
*/
public Builder localName(String localName) {
this.localName = localName;
return this;
}
/**
* <p>The endpoint that is used to connect to Alibaba Cloud services in the region. For more information, see <a href="https://help.aliyun.com/document_detail/610370.html">Endpoints</a>.</p>
*
* <strong>example:</strong>
* <p>rds.aliyuncs.com</p>
*/
public Builder regionEndpoint(String regionEndpoint) {
this.regionEndpoint = regionEndpoint;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The zone ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-h</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
/**
* <p>The zone name. The return value of this parameter is in the language that is specified by the <strong>AcceptLanguage</strong> parameter. For example, if the value of the ZoneId parameter in the response is cn-hangzhou-j, the following values are returned for the ZoneName parameter:</p>
* <ul>
* <li>If the value of the <strong>AcceptLanguage</strong> parameter is <strong>zh-CN</strong>, the value J is returned for the ZoneName parameter.</li>
* <li>If the value of the <strong>AcceptLanguage</strong> parameter is <strong>en-US</strong>, the value Hangzhou Zone J is returned for the ZoneName parameter.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Hangzhou Zone H</p>
*/
public Builder zoneName(String zoneName) {
this.zoneName = zoneName;
return this;
}
public RDSRegion build() {
return new RDSRegion(this);
}
}
}
/**
*
* {@link DescribeRegionsResponseBody} extends {@link TeaModel}
*
* <p>DescribeRegionsResponseBody</p>
*/
public static class Regions extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RDSRegion")
private java.util.List<RDSRegion> RDSRegion;
private Regions(Builder builder) {
this.RDSRegion = builder.RDSRegion;
}
public static Builder builder() {
return new Builder();
}
public static Regions create() {
return builder().build();
}
/**
* @return RDSRegion
*/
public java.util.List<RDSRegion> getRDSRegion() {
return this.RDSRegion;
}
public static final class Builder {
private java.util.List<RDSRegion> RDSRegion;
private Builder() {
}
private Builder(Regions model) {
this.RDSRegion = model.RDSRegion;
}
/**
* RDSRegion.
*/
public Builder RDSRegion(java.util.List<RDSRegion> RDSRegion) {
this.RDSRegion = RDSRegion;
return this;
}
public Regions build() {
return new Regions(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRenewalPriceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRenewalPriceRequest} extends {@link RequestModel}
*
* <p>DescribeRenewalPriceRequest</p>
*/
public class DescribeRenewalPriceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BusinessInfo")
private String businessInfo;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceClass")
private String DBInstanceClass;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OrderType")
private String orderType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PayType")
private String payType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Quantity")
private Integer quantity;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TimeType")
@com.aliyun.core.annotation.Validation(required = true)
private String timeType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("UsedTime")
@com.aliyun.core.annotation.Validation(required = true)
private Integer usedTime;
private DescribeRenewalPriceRequest(Builder builder) {
super(builder);
this.businessInfo = builder.businessInfo;
this.clientToken = builder.clientToken;
this.DBInstanceClass = builder.DBInstanceClass;
this.DBInstanceId = builder.DBInstanceId;
this.orderType = builder.orderType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.payType = builder.payType;
this.quantity = builder.quantity;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.timeType = builder.timeType;
this.usedTime = builder.usedTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRenewalPriceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return businessInfo
*/
public String getBusinessInfo() {
return this.businessInfo;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceClass
*/
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return orderType
*/
public String getOrderType() {
return this.orderType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return payType
*/
public String getPayType() {
return this.payType;
}
/**
* @return quantity
*/
public Integer getQuantity() {
return this.quantity;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return timeType
*/
public String getTimeType() {
return this.timeType;
}
/**
* @return usedTime
*/
public Integer getUsedTime() {
return this.usedTime;
}
public static final class Builder extends Request.Builder<DescribeRenewalPriceRequest, Builder> {
private String businessInfo;
private String clientToken;
private String DBInstanceClass;
private String DBInstanceId;
private String orderType;
private String ownerAccount;
private Long ownerId;
private String payType;
private Integer quantity;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String timeType;
private Integer usedTime;
private Builder() {
super();
}
private Builder(DescribeRenewalPriceRequest request) {
super(request);
this.businessInfo = request.businessInfo;
this.clientToken = request.clientToken;
this.DBInstanceClass = request.DBInstanceClass;
this.DBInstanceId = request.DBInstanceId;
this.orderType = request.orderType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.payType = request.payType;
this.quantity = request.quantity;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.timeType = request.timeType;
this.usedTime = request.usedTime;
}
/**
* <p>The additional business information about the instance.</p>
*
* <strong>example:</strong>
* <p>121436975448952</p>
*/
public Builder businessInfo(String businessInfo) {
this.putQueryParameter("BusinessInfo", businessInfo);
this.businessInfo = businessInfo;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCzxxxxxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance type of the instance. For more information, see <a href="https://help.aliyun.com/document_detail/26312.html">Primary instance types</a>. By default, the current instance type applies.</p>
*
* <strong>example:</strong>
* <p>mysql.n2.medium.2c</p>
*/
public Builder DBInstanceClass(String DBInstanceClass) {
this.putQueryParameter("DBInstanceClass", DBInstanceClass);
this.DBInstanceClass = DBInstanceClass;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The type of order. Set the value to <strong>BUY</strong>.</p>
*
* <strong>example:</strong>
* <p>BUY</p>
*/
public Builder orderType(String orderType) {
this.putQueryParameter("OrderType", orderType);
this.orderType = orderType;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The billing method of the instance. Valid values:</p>
* <ul>
* <li><strong>Postpaid</strong>: pay-as-you-go</li>
* <li><strong>Prepaid</strong>: subscription</li>
* </ul>
*
* <strong>example:</strong>
* <p>Postpaid</p>
*/
public Builder payType(String payType) {
this.putQueryParameter("PayType", payType);
this.payType = payType;
return this;
}
/**
* <p>The number of the instances. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder quantity(Integer quantity) {
this.putQueryParameter("Quantity", quantity);
this.quantity = quantity;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID. You can call the DescribeDBInstanceAttribute operation to query the resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmx****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The renewal cycle of the instance. Valid values:</p>
* <ul>
* <li><strong>Year</strong></li>
* <li><strong>Month</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Year</p>
*/
public Builder timeType(String timeType) {
this.putQueryParameter("TimeType", timeType);
this.timeType = timeType;
return this;
}
/**
* <p>The subscription duration of the instance. Valid values:</p>
* <ul>
* <li>If you set the <strong>TimeType</strong> parameter to <strong>Year</strong>, the value of the UsedTime parameter is within the range of <strong>1 to 3</strong>.</li>
* <li>If you set the <strong>TimeType</strong> parameter to <strong>Month</strong>, the value of the UsedTime parameter is within the range of <strong>1 to 9</strong>.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder usedTime(Integer usedTime) {
this.putQueryParameter("UsedTime", usedTime);
this.usedTime = usedTime;
return this;
}
@Override
public DescribeRenewalPriceRequest build() {
return new DescribeRenewalPriceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRenewalPriceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRenewalPriceResponse} extends {@link TeaModel}
*
* <p>DescribeRenewalPriceResponse</p>
*/
public class DescribeRenewalPriceResponse 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 DescribeRenewalPriceResponseBody body;
private DescribeRenewalPriceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeRenewalPriceResponse 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 DescribeRenewalPriceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeRenewalPriceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeRenewalPriceResponseBody body);
@Override
DescribeRenewalPriceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeRenewalPriceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeRenewalPriceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeRenewalPriceResponse 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(DescribeRenewalPriceResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeRenewalPriceResponse build() {
return new DescribeRenewalPriceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeRenewalPriceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeRenewalPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeRenewalPriceResponseBody</p>
*/
public class DescribeRenewalPriceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PriceInfo")
private PriceInfo priceInfo;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Rules")
private Rules rules;
private DescribeRenewalPriceResponseBody(Builder builder) {
this.priceInfo = builder.priceInfo;
this.requestId = builder.requestId;
this.rules = builder.rules;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRenewalPriceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return priceInfo
*/
public PriceInfo getPriceInfo() {
return this.priceInfo;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return rules
*/
public Rules getRules() {
return this.rules;
}
public static final class Builder {
private PriceInfo priceInfo;
private String requestId;
private Rules rules;
private Builder() {
}
private Builder(DescribeRenewalPriceResponseBody model) {
this.priceInfo = model.priceInfo;
this.requestId = model.requestId;
this.rules = model.rules;
}
/**
* <p>Details of price information.</p>
*/
public Builder priceInfo(PriceInfo priceInfo) {
this.priceInfo = priceInfo;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>DC9F4EF6-D038-4405-B497-1F48E722C9F2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>An array that consists of the details of the promotion rule.</p>
*/
public Builder rules(Rules rules) {
this.rules = rules;
return this;
}
public DescribeRenewalPriceResponseBody build() {
return new DescribeRenewalPriceResponseBody(this);
}
}
/**
*
* {@link DescribeRenewalPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeRenewalPriceResponseBody</p>
*/
public static class ActivityInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckErrMsg")
private String checkErrMsg;
@com.aliyun.core.annotation.NameInMap("ErrorCode")
private String errorCode;
@com.aliyun.core.annotation.NameInMap("Success")
private String success;
private ActivityInfo(Builder builder) {
this.checkErrMsg = builder.checkErrMsg;
this.errorCode = builder.errorCode;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static ActivityInfo create() {
return builder().build();
}
/**
* @return checkErrMsg
*/
public String getCheckErrMsg() {
return this.checkErrMsg;
}
/**
* @return errorCode
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* @return success
*/
public String getSuccess() {
return this.success;
}
public static final class Builder {
private String checkErrMsg;
private String errorCode;
private String success;
private Builder() {
}
private Builder(ActivityInfo model) {
this.checkErrMsg = model.checkErrMsg;
this.errorCode = model.errorCode;
this.success = model.success;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>Error description</p>
*/
public Builder checkErrMsg(String checkErrMsg) {
this.checkErrMsg = checkErrMsg;
return this;
}
/**
* <p>The error code that is returned.</p>
*
* <strong>example:</strong>
* <p>123456</p>
*/
public Builder errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* <p>Indicates whether the request was successful.</p>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder success(String success) {
this.success = success;
return this;
}
public ActivityInfo build() {
return new ActivityInfo(this);
}
}
}
/**
*
* {@link DescribeRenewalPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeRenewalPriceResponseBody</p>
*/
public static class Coupon extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CouponNo")
private String couponNo;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("IsSelected")
private String isSelected;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
private Coupon(Builder builder) {
this.couponNo = builder.couponNo;
this.description = builder.description;
this.isSelected = builder.isSelected;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static Coupon create() {
return builder().build();
}
/**
* @return couponNo
*/
public String getCouponNo() {
return this.couponNo;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return isSelected
*/
public String getIsSelected() {
return this.isSelected;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private String couponNo;
private String description;
private String isSelected;
private String name;
private Builder() {
}
private Builder(Coupon model) {
this.couponNo = model.couponNo;
this.description = model.description;
this.isSelected = model.isSelected;
this.name = model.name;
}
/**
* <p>The coupon ID.</p>
*
* <strong>example:</strong>
* <p>123456</p>
*/
public Builder couponNo(String couponNo) {
this.couponNo = couponNo;
return this;
}
/**
* <p>The description of the coupon.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>Indicates whether the coupon is selected.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder isSelected(String isSelected) {
this.isSelected = isSelected;
return this;
}
/**
* <p>The name of the coupon.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
public Coupon build() {
return new Coupon(this);
}
}
}
/**
*
* {@link DescribeRenewalPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeRenewalPriceResponseBody</p>
*/
public static class Coupons extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Coupon")
private java.util.List<Coupon> coupon;
private Coupons(Builder builder) {
this.coupon = builder.coupon;
}
public static Builder builder() {
return new Builder();
}
public static Coupons create() {
return builder().build();
}
/**
* @return coupon
*/
public java.util.List<Coupon> getCoupon() {
return this.coupon;
}
public static final class Builder {
private java.util.List<Coupon> coupon;
private Builder() {
}
private Builder(Coupons model) {
this.coupon = model.coupon;
}
/**
* Coupon.
*/
public Builder coupon(java.util.List<Coupon> coupon) {
this.coupon = coupon;
return this;
}
public Coupons build() {
return new Coupons(this);
}
}
}
/**
*
* {@link DescribeRenewalPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeRenewalPriceResponseBody</p>
*/
public static class RuleIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RuleId")
private java.util.List<String> ruleId;
private RuleIds(Builder builder) {
this.ruleId = builder.ruleId;
}
public static Builder builder() {
return new Builder();
}
public static RuleIds create() {
return builder().build();
}
/**
* @return ruleId
*/
public java.util.List<String> getRuleId() {
return this.ruleId;
}
public static final class Builder {
private java.util.List<String> ruleId;
private Builder() {
}
private Builder(RuleIds model) {
this.ruleId = model.ruleId;
}
/**
* RuleId.
*/
public Builder ruleId(java.util.List<String> ruleId) {
this.ruleId = ruleId;
return this;
}
public RuleIds build() {
return new RuleIds(this);
}
}
}
/**
*
* {@link DescribeRenewalPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeRenewalPriceResponseBody</p>
*/
public static class PriceInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ActivityInfo")
private ActivityInfo activityInfo;
@com.aliyun.core.annotation.NameInMap("Coupons")
private Coupons coupons;
@com.aliyun.core.annotation.NameInMap("Currency")
private String currency;
@com.aliyun.core.annotation.NameInMap("DiscountPrice")
private Float discountPrice;
@com.aliyun.core.annotation.NameInMap("OriginalPrice")
private Float originalPrice;
@com.aliyun.core.annotation.NameInMap("RuleIds")
private RuleIds ruleIds;
@com.aliyun.core.annotation.NameInMap("TradePrice")
private Float tradePrice;
private PriceInfo(Builder builder) {
this.activityInfo = builder.activityInfo;
this.coupons = builder.coupons;
this.currency = builder.currency;
this.discountPrice = builder.discountPrice;
this.originalPrice = builder.originalPrice;
this.ruleIds = builder.ruleIds;
this.tradePrice = builder.tradePrice;
}
public static Builder builder() {
return new Builder();
}
public static PriceInfo create() {
return builder().build();
}
/**
* @return activityInfo
*/
public ActivityInfo getActivityInfo() {
return this.activityInfo;
}
/**
* @return coupons
*/
public Coupons getCoupons() {
return this.coupons;
}
/**
* @return currency
*/
public String getCurrency() {
return this.currency;
}
/**
* @return discountPrice
*/
public Float getDiscountPrice() {
return this.discountPrice;
}
/**
* @return originalPrice
*/
public Float getOriginalPrice() {
return this.originalPrice;
}
/**
* @return ruleIds
*/
public RuleIds getRuleIds() {
return this.ruleIds;
}
/**
* @return tradePrice
*/
public Float getTradePrice() {
return this.tradePrice;
}
public static final class Builder {
private ActivityInfo activityInfo;
private Coupons coupons;
private String currency;
private Float discountPrice;
private Float originalPrice;
private RuleIds ruleIds;
private Float tradePrice;
private Builder() {
}
private Builder(PriceInfo model) {
this.activityInfo = model.activityInfo;
this.coupons = model.coupons;
this.currency = model.currency;
this.discountPrice = model.discountPrice;
this.originalPrice = model.originalPrice;
this.ruleIds = model.ruleIds;
this.tradePrice = model.tradePrice;
}
/**
* <p>The information about the promotion.</p>
*/
public Builder activityInfo(ActivityInfo activityInfo) {
this.activityInfo = activityInfo;
return this;
}
/**
* <p>An array that consists of information about the coupon.</p>
*/
public Builder coupons(Coupons coupons) {
this.coupons = coupons;
return this;
}
/**
* <p>The currency unit.</p>
*
* <strong>example:</strong>
* <p>CNY</p>
*/
public Builder currency(String currency) {
this.currency = currency;
return this;
}
/**
* <p>The discount.</p>
*
* <strong>example:</strong>
* <p>27</p>
*/
public Builder discountPrice(Float discountPrice) {
this.discountPrice = discountPrice;
return this;
}
/**
* <p>The original price.</p>
*
* <strong>example:</strong>
* <p>138</p>
*/
public Builder originalPrice(Float originalPrice) {
this.originalPrice = originalPrice;
return this;
}
/**
* <p>An array that consists of the ID of the promotion rule.</p>
*/
public Builder ruleIds(RuleIds ruleIds) {
this.ruleIds = ruleIds;
return this;
}
/**
* <p>The transaction price, which is equal to the original price minus the discount.</p>
*
* <strong>example:</strong>
* <p>111</p>
*/
public Builder tradePrice(Float tradePrice) {
this.tradePrice = tradePrice;
return this;
}
public PriceInfo build() {
return new PriceInfo(this);
}
}
}
/**
*
* {@link DescribeRenewalPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeRenewalPriceResponseBody</p>
*/
public static class Rule extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
private Rule(Builder builder) {
this.description = builder.description;
this.name = builder.name;
this.ruleId = builder.ruleId;
}
public static Builder builder() {
return new Builder();
}
public static Rule create() {
return builder().build();
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
public static final class Builder {
private String description;
private String name;
private Long ruleId;
private Builder() {
}
private Builder(Rule model) {
this.description = model.description;
this.name = model.name;
this.ruleId = model.ruleId;
}
/**
* <p>The description of the activity.</p>
*
* <strong>example:</strong>
* <p>Content</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The name of the rule.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* <p>The ID of the promotion rule.</p>
*
* <strong>example:</strong>
* <p>1001199213</p>
*/
public Builder ruleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
public Rule build() {
return new Rule(this);
}
}
}
/**
*
* {@link DescribeRenewalPriceResponseBody} extends {@link TeaModel}
*
* <p>DescribeRenewalPriceResponseBody</p>
*/
public static class Rules extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Rule")
private java.util.List<Rule> rule;
private Rules(Builder builder) {
this.rule = builder.rule;
}
public static Builder builder() {
return new Builder();
}
public static Rules create() {
return builder().build();
}
/**
* @return rule
*/
public java.util.List<Rule> getRule() {
return this.rule;
}
public static final class Builder {
private java.util.List<Rule> rule;
private Builder() {
}
private Builder(Rules model) {
this.rule = model.rule;
}
/**
* Rule.
*/
public Builder rule(java.util.List<Rule> rule) {
this.rule = rule;
return this;
}
public Rules build() {
return new Rules(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeReplicationLinkLogsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReplicationLinkLogsRequest} extends {@link RequestModel}
*
* <p>DescribeReplicationLinkLogsRequest</p>
*/
public class DescribeReplicationLinkLogsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Long pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskId")
private Long taskId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskType")
@com.aliyun.core.annotation.Validation(required = true)
private String taskType;
private DescribeReplicationLinkLogsRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.taskId = builder.taskId;
this.taskName = builder.taskName;
this.taskType = builder.taskType;
}
public static Builder builder() {
return new Builder();
}
public static DescribeReplicationLinkLogsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return pageNumber
*/
public Long getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return taskId
*/
public Long getTaskId() {
return this.taskId;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
/**
* @return taskType
*/
public String getTaskType() {
return this.taskType;
}
public static final class Builder extends Request.Builder<DescribeReplicationLinkLogsRequest, Builder> {
private String DBInstanceId;
private Long pageNumber;
private Long pageSize;
private Long taskId;
private String taskName;
private String taskType;
private Builder() {
super();
}
private Builder(DescribeReplicationLinkLogsRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.taskId = request.taskId;
this.taskName = request.taskName;
this.taskType = request.taskType;
}
/**
* <p>The ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pgm-bp1trqb4p1xd****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Long pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The task ID. You must set this parameter to the ID of the task that you create by calling the <strong>CreateReplicationLink</strong> operation for the disaster recovery instance.</p>
*
* <strong>example:</strong>
* <p>8413252</p>
*/
public Builder taskId(Long taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
/**
* <p>The task name. You must set this parameter to the name of the task that you create by calling the <strong>CreateReplicationLink</strong> operation for the disaster recovery instance.</p>
*
* <strong>example:</strong>
* <p>test01</p>
*/
public Builder taskName(String taskName) {
this.putQueryParameter("TaskName", taskName);
this.taskName = taskName;
return this;
}
/**
* <p>The type of the task. Valid values:</p>
* <ul>
* <li><strong>create</strong>: creates a synchronization link.</li>
* <li><strong>create-dryrun</strong>: performs a precheck before a synchronization link is created.</li>
* </ul>
* <p>Valid values:</p>
* <ul>
* <li>create: creates a replication link.</li>
* <li>create-dryrun: performs a precheck before a replication link is created.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>create</p>
*/
public Builder taskType(String taskType) {
this.putQueryParameter("TaskType", taskType);
this.taskType = taskType;
return this;
}
@Override
public DescribeReplicationLinkLogsRequest build() {
return new DescribeReplicationLinkLogsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeReplicationLinkLogsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReplicationLinkLogsResponse} extends {@link TeaModel}
*
* <p>DescribeReplicationLinkLogsResponse</p>
*/
public class DescribeReplicationLinkLogsResponse 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 DescribeReplicationLinkLogsResponseBody body;
private DescribeReplicationLinkLogsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeReplicationLinkLogsResponse 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 DescribeReplicationLinkLogsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeReplicationLinkLogsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeReplicationLinkLogsResponseBody body);
@Override
DescribeReplicationLinkLogsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeReplicationLinkLogsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeReplicationLinkLogsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeReplicationLinkLogsResponse 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(DescribeReplicationLinkLogsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeReplicationLinkLogsResponse build() {
return new DescribeReplicationLinkLogsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeReplicationLinkLogsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReplicationLinkLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeReplicationLinkLogsResponseBody</p>
*/
public class DescribeReplicationLinkLogsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalSize")
private Integer totalSize;
private DescribeReplicationLinkLogsResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.items = builder.items;
this.requestId = builder.requestId;
this.totalSize = builder.totalSize;
}
public static Builder builder() {
return new Builder();
}
public static DescribeReplicationLinkLogsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalSize
*/
public Integer getTotalSize() {
return this.totalSize;
}
public static final class Builder {
private String DBInstanceId;
private java.util.List<Items> items;
private String requestId;
private Integer totalSize;
private Builder() {
}
private Builder(DescribeReplicationLinkLogsResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.items = model.items;
this.requestId = model.requestId;
this.totalSize = model.totalSize;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>pgm-bp1trqb4p1xd****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The items.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>16C62438-491B-5C02-9B49-BA924A1372A2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalSize(Integer totalSize) {
this.totalSize = totalSize;
return this;
}
public DescribeReplicationLinkLogsResponseBody build() {
return new DescribeReplicationLinkLogsResponseBody(this);
}
}
/**
*
* {@link DescribeReplicationLinkLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeReplicationLinkLogsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Detail")
private String detail;
@com.aliyun.core.annotation.NameInMap("GmtCreated")
private String gmtCreated;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private String gmtModified;
@com.aliyun.core.annotation.NameInMap("ReplicationInfo")
private String replicationInfo;
@com.aliyun.core.annotation.NameInMap("ReplicationState")
private String replicationState;
@com.aliyun.core.annotation.NameInMap("ReplicatorAccount")
private String replicatorAccount;
@com.aliyun.core.annotation.NameInMap("ReplicatorPassword")
private String replicatorPassword;
@com.aliyun.core.annotation.NameInMap("SourceAddress")
private String sourceAddress;
@com.aliyun.core.annotation.NameInMap("SourceCategory")
private String sourceCategory;
@com.aliyun.core.annotation.NameInMap("SourcePort")
private Long sourcePort;
@com.aliyun.core.annotation.NameInMap("TargetInstanceId")
private String targetInstanceId;
@com.aliyun.core.annotation.NameInMap("TaskId")
private Long taskId;
@com.aliyun.core.annotation.NameInMap("TaskName")
private String taskName;
@com.aliyun.core.annotation.NameInMap("TaskStage")
private String taskStage;
@com.aliyun.core.annotation.NameInMap("TaskStatus")
private String taskStatus;
@com.aliyun.core.annotation.NameInMap("TaskType")
private String taskType;
private Items(Builder builder) {
this.detail = builder.detail;
this.gmtCreated = builder.gmtCreated;
this.gmtModified = builder.gmtModified;
this.replicationInfo = builder.replicationInfo;
this.replicationState = builder.replicationState;
this.replicatorAccount = builder.replicatorAccount;
this.replicatorPassword = builder.replicatorPassword;
this.sourceAddress = builder.sourceAddress;
this.sourceCategory = builder.sourceCategory;
this.sourcePort = builder.sourcePort;
this.targetInstanceId = builder.targetInstanceId;
this.taskId = builder.taskId;
this.taskName = builder.taskName;
this.taskStage = builder.taskStage;
this.taskStatus = builder.taskStatus;
this.taskType = builder.taskType;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return detail
*/
public String getDetail() {
return this.detail;
}
/**
* @return gmtCreated
*/
public String getGmtCreated() {
return this.gmtCreated;
}
/**
* @return gmtModified
*/
public String getGmtModified() {
return this.gmtModified;
}
/**
* @return replicationInfo
*/
public String getReplicationInfo() {
return this.replicationInfo;
}
/**
* @return replicationState
*/
public String getReplicationState() {
return this.replicationState;
}
/**
* @return replicatorAccount
*/
public String getReplicatorAccount() {
return this.replicatorAccount;
}
/**
* @return replicatorPassword
*/
public String getReplicatorPassword() {
return this.replicatorPassword;
}
/**
* @return sourceAddress
*/
public String getSourceAddress() {
return this.sourceAddress;
}
/**
* @return sourceCategory
*/
public String getSourceCategory() {
return this.sourceCategory;
}
/**
* @return sourcePort
*/
public Long getSourcePort() {
return this.sourcePort;
}
/**
* @return targetInstanceId
*/
public String getTargetInstanceId() {
return this.targetInstanceId;
}
/**
* @return taskId
*/
public Long getTaskId() {
return this.taskId;
}
/**
* @return taskName
*/
public String getTaskName() {
return this.taskName;
}
/**
* @return taskStage
*/
public String getTaskStage() {
return this.taskStage;
}
/**
* @return taskStatus
*/
public String getTaskStatus() {
return this.taskStatus;
}
/**
* @return taskType
*/
public String getTaskType() {
return this.taskType;
}
public static final class Builder {
private String detail;
private String gmtCreated;
private String gmtModified;
private String replicationInfo;
private String replicationState;
private String replicatorAccount;
private String replicatorPassword;
private String sourceAddress;
private String sourceCategory;
private Long sourcePort;
private String targetInstanceId;
private Long taskId;
private String taskName;
private String taskStage;
private String taskStatus;
private String taskType;
private Builder() {
}
private Builder(Items model) {
this.detail = model.detail;
this.gmtCreated = model.gmtCreated;
this.gmtModified = model.gmtModified;
this.replicationInfo = model.replicationInfo;
this.replicationState = model.replicationState;
this.replicatorAccount = model.replicatorAccount;
this.replicatorPassword = model.replicatorPassword;
this.sourceAddress = model.sourceAddress;
this.sourceCategory = model.sourceCategory;
this.sourcePort = model.sourcePort;
this.targetInstanceId = model.targetInstanceId;
this.taskId = model.taskId;
this.taskName = model.taskName;
this.taskStage = model.taskStage;
this.taskStatus = model.taskStatus;
this.taskType = model.taskType;
}
/**
* <p>The details of the task.</p>
*
* <strong>example:</strong>
* <p>[Check rds empty]\nCheck rds databases: success\n[Check source connectivity]\nCheck ip connectable: success\nCheck port connectable: success\nCheck database connectable: success\nCheck account replication privilege: success\nCheck account createrole privilege: success\nCheck account monitor privilege: success\n[Check source version]\nCheck major version consistent: success\n[Check source glibc version]\nCheck source glibc version compatible: warning(warning:source glibc version is not compatible with rds pg)\n[Check disk size]\nCheck disk size enough: success\n[Check wal keep size]\nCheck wal keep size large enough: success\n[Check spec params]\nCheck if spec params too large: success\n [Check triggers]\nCheck triggers compatible: success\n[Check user functions]\nCheck user functions compatible: success\n<em>Migrate check success</em></p>
*/
public Builder detail(String detail) {
this.detail = detail;
return this;
}
/**
* <p>The creation time. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-02-25T06:57:41Z</p>
*/
public Builder gmtCreated(String gmtCreated) {
this.gmtCreated = gmtCreated;
return this;
}
/**
* <p>The modification time. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2022-03-01T06:39:51Z</p>
*/
public Builder gmtModified(String gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* <p>The synchronization information. This parameter is a reserved parameter.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder replicationInfo(String replicationInfo) {
this.replicationInfo = replicationInfo;
return this;
}
/**
* <p>The status of the synchronization. Valid values:</p>
* <ul>
* <li><strong>steaming</strong>: The synchronization is in progress.</li>
* <li><strong>finish</strong>: The synchronization is complete.</li>
* <li><strong>disconnect</strong>: The synchronization is disconnected.</li>
* </ul>
*
* <strong>example:</strong>
* <p>finish</p>
*/
public Builder replicationState(String replicationState) {
this.replicationState = replicationState;
return this;
}
/**
* <p>The account of the database that is used for data synchronization.</p>
*
* <strong>example:</strong>
* <p>testdbuser</p>
*/
public Builder replicatorAccount(String replicatorAccount) {
this.replicatorAccount = replicatorAccount;
return this;
}
/**
* <p>The password of the account.</p>
*
* <strong>example:</strong>
* <p>testpassword</p>
*/
public Builder replicatorPassword(String replicatorPassword) {
this.replicatorPassword = replicatorPassword;
return this;
}
/**
* <p>The endpoint of the source instance.</p>
*
* <strong>example:</strong>
* <p>pgm-****.pg.rds.aliyuncs.com</p>
*/
public Builder sourceAddress(String sourceAddress) {
this.sourceAddress = sourceAddress;
return this;
}
/**
* <p>The type of the source instance. Valid values:</p>
* <ul>
* <li>other: other instances</li>
* <li>aliyunRDS: an ApsaraDB RDS instance</li>
* </ul>
*
* <strong>example:</strong>
* <p>aliyunRDS</p>
*/
public Builder sourceCategory(String sourceCategory) {
this.sourceCategory = sourceCategory;
return this;
}
/**
* <p>The port number of the source instance.</p>
*
* <strong>example:</strong>
* <p>5432</p>
*/
public Builder sourcePort(Long sourcePort) {
this.sourcePort = sourcePort;
return this;
}
/**
* <p>The destination instance ID.</p>
*
* <strong>example:</strong>
* <p>pgm-bp1l4dutw453****</p>
*/
public Builder targetInstanceId(String targetInstanceId) {
this.targetInstanceId = targetInstanceId;
return this;
}
/**
* <p>The ID of the task.</p>
*
* <strong>example:</strong>
* <p>8413252</p>
*/
public Builder taskId(Long taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The name of the task.</p>
*
* <strong>example:</strong>
* <p>test01</p>
*/
public Builder taskName(String taskName) {
this.taskName = taskName;
return this;
}
/**
* <p>The stage of the task. Valid values:</p>
* <ul>
* <li><strong>precheck</strong>: the precheck stage.</li>
* <li><strong>basebackup</strong>: the basic backup stage.</li>
* <li><strong>startup</strong>: the startup stage.</li>
* <li><strong>increment</strong>: the incremental synchronization stage.</li>
* </ul>
*
* <strong>example:</strong>
* <p>increment</p>
*/
public Builder taskStage(String taskStage) {
this.taskStage = taskStage;
return this;
}
/**
* <p>The status of the task. Valid values:</p>
* <ul>
* <li><strong>success</strong></li>
* <li><strong>failure</strong></li>
* <li><strong>running</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder taskStatus(String taskStatus) {
this.taskStatus = taskStatus;
return this;
}
/**
* <p>The type of the task. Valid values:</p>
* <ul>
* <li><strong>create</strong>: creates a synchronization link.</li>
* <li><strong>create-dryrun</strong>: performs a precheck before a synchronization link is created.</li>
* </ul>
*
* <strong>example:</strong>
* <p>create</p>
*/
public Builder taskType(String taskType) {
this.taskType = taskType;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeResourceDetailsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeResourceDetailsRequest} extends {@link RequestModel}
*
* <p>DescribeResourceDetailsRequest</p>
*/
public class DescribeResourceDetailsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeResourceDetailsRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeResourceDetailsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeResourceDetailsRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeResourceDetailsRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCzxxxxxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-bp1ul2y10grt91m68</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID. You can call the <a href="https://help.aliyun.com/document_detail/26243.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfm3kyoa2wqhyy</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeResourceDetailsRequest build() {
return new DescribeResourceDetailsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeResourceDetailsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeResourceDetailsResponse} extends {@link TeaModel}
*
* <p>DescribeResourceDetailsResponse</p>
*/
public class DescribeResourceDetailsResponse 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 DescribeResourceDetailsResponseBody body;
private DescribeResourceDetailsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeResourceDetailsResponse 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 DescribeResourceDetailsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeResourceDetailsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeResourceDetailsResponseBody body);
@Override
DescribeResourceDetailsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeResourceDetailsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeResourceDetailsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeResourceDetailsResponse 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(DescribeResourceDetailsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeResourceDetailsResponse build() {
return new DescribeResourceDetailsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeResourceDetailsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeResourceDetailsResponseBody} extends {@link TeaModel}
*
* <p>DescribeResourceDetailsResponseBody</p>
*/
public class DescribeResourceDetailsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BackupDataSize")
private Long backupDataSize;
@com.aliyun.core.annotation.NameInMap("BackupLogSize")
private Long backupLogSize;
@com.aliyun.core.annotation.NameInMap("BackupSize")
private Long backupSize;
@com.aliyun.core.annotation.NameInMap("DbInstanceStorage")
private Long dbInstanceStorage;
@com.aliyun.core.annotation.NameInMap("DbProxyInstanceName")
private String dbProxyInstanceName;
@com.aliyun.core.annotation.NameInMap("DiskUsed")
private Long diskUsed;
@com.aliyun.core.annotation.NameInMap("InstanceStorageType")
private String instanceStorageType;
@com.aliyun.core.annotation.NameInMap("RdsEcsSecurityGroupRel")
private java.util.List<RdsEcsSecurityGroupRel> rdsEcsSecurityGroupRel;
@com.aliyun.core.annotation.NameInMap("Region")
private String region;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("SecurityIPList")
private String securityIPList;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private DescribeResourceDetailsResponseBody(Builder builder) {
this.backupDataSize = builder.backupDataSize;
this.backupLogSize = builder.backupLogSize;
this.backupSize = builder.backupSize;
this.dbInstanceStorage = builder.dbInstanceStorage;
this.dbProxyInstanceName = builder.dbProxyInstanceName;
this.diskUsed = builder.diskUsed;
this.instanceStorageType = builder.instanceStorageType;
this.rdsEcsSecurityGroupRel = builder.rdsEcsSecurityGroupRel;
this.region = builder.region;
this.requestId = builder.requestId;
this.resourceGroupId = builder.resourceGroupId;
this.securityIPList = builder.securityIPList;
this.vSwitchId = builder.vSwitchId;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeResourceDetailsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return backupDataSize
*/
public Long getBackupDataSize() {
return this.backupDataSize;
}
/**
* @return backupLogSize
*/
public Long getBackupLogSize() {
return this.backupLogSize;
}
/**
* @return backupSize
*/
public Long getBackupSize() {
return this.backupSize;
}
/**
* @return dbInstanceStorage
*/
public Long getDbInstanceStorage() {
return this.dbInstanceStorage;
}
/**
* @return dbProxyInstanceName
*/
public String getDbProxyInstanceName() {
return this.dbProxyInstanceName;
}
/**
* @return diskUsed
*/
public Long getDiskUsed() {
return this.diskUsed;
}
/**
* @return instanceStorageType
*/
public String getInstanceStorageType() {
return this.instanceStorageType;
}
/**
* @return rdsEcsSecurityGroupRel
*/
public java.util.List<RdsEcsSecurityGroupRel> getRdsEcsSecurityGroupRel() {
return this.rdsEcsSecurityGroupRel;
}
/**
* @return region
*/
public String getRegion() {
return this.region;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return securityIPList
*/
public String getSecurityIPList() {
return this.securityIPList;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private Long backupDataSize;
private Long backupLogSize;
private Long backupSize;
private Long dbInstanceStorage;
private String dbProxyInstanceName;
private Long diskUsed;
private String instanceStorageType;
private java.util.List<RdsEcsSecurityGroupRel> rdsEcsSecurityGroupRel;
private String region;
private String requestId;
private String resourceGroupId;
private String securityIPList;
private String vSwitchId;
private String vpcId;
private Builder() {
}
private Builder(DescribeResourceDetailsResponseBody model) {
this.backupDataSize = model.backupDataSize;
this.backupLogSize = model.backupLogSize;
this.backupSize = model.backupSize;
this.dbInstanceStorage = model.dbInstanceStorage;
this.dbProxyInstanceName = model.dbProxyInstanceName;
this.diskUsed = model.diskUsed;
this.instanceStorageType = model.instanceStorageType;
this.rdsEcsSecurityGroupRel = model.rdsEcsSecurityGroupRel;
this.region = model.region;
this.requestId = model.requestId;
this.resourceGroupId = model.resourceGroupId;
this.securityIPList = model.securityIPList;
this.vSwitchId = model.vSwitchId;
this.vpcId = model.vpcId;
}
/**
* <p>The storage that is occupied by data backup files, excluding archived backup files, on the instance. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>8139046912</p>
*/
public Builder backupDataSize(Long backupDataSize) {
this.backupDataSize = backupDataSize;
return this;
}
/**
* <p>The size of the backup log. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>21183797</p>
*/
public Builder backupLogSize(Long backupLogSize) {
this.backupLogSize = backupLogSize;
return this;
}
/**
* <p>The size of the backup data. Unit: MB.</p>
*
* <strong>example:</strong>
* <p>53002759</p>
*/
public Builder backupSize(Long backupSize) {
this.backupSize = backupSize;
return this;
}
/**
* <p>The disk capacity of the instance.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder dbInstanceStorage(Long dbInstanceStorage) {
this.dbInstanceStorage = dbInstanceStorage;
return this;
}
/**
* <p>The name of the proxy instance.</p>
*
* <strong>example:</strong>
* <p>mr-n1m1wjrylfolvrt67s</p>
*/
public Builder dbProxyInstanceName(String dbProxyInstanceName) {
this.dbProxyInstanceName = dbProxyInstanceName;
return this;
}
/**
* <p>The total storage used. The value is the sum of the DataSize and LogSize values. Unit: bytes. The value -1 indicates that no data files or log files are stored.</p>
*
* <strong>example:</strong>
* <p>4871684096</p>
*/
public Builder diskUsed(Long diskUsed) {
this.diskUsed = diskUsed;
return this;
}
/**
* <p>The storage type of the instance.</p>
*
* <strong>example:</strong>
* <p>cloud_essd</p>
*/
public Builder instanceStorageType(String instanceStorageType) {
this.instanceStorageType = instanceStorageType;
return this;
}
/**
* <p>The rule for the IP address whitelist of the instance.</p>
*/
public Builder rdsEcsSecurityGroupRel(java.util.List<RdsEcsSecurityGroupRel> rdsEcsSecurityGroupRel) {
this.rdsEcsSecurityGroupRel = rdsEcsSecurityGroupRel;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-beijing</p>
*/
public Builder region(String region) {
this.region = region;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>EA815761-F7AC-5CFE-A1AC-709D6A00B58A</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmv3h25bj7yhq</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* <p>The IP address whitelist of the instance. For more information, see <a href="https://help.aliyun.com/document_detail/43185.html">Configure IP address whitelists</a>. If the returned IP address whitelist contains more than one entry, these entries are separated with commas (,). Each entry is unique and up to 1,000 entries are returned. The entries in the IP address whitelist must be in one of the following formats:</p>
* <ul>
* <li>IP addresses, such as 10.10.XX.XX.</li>
* <li>CIDR blocks, such as 10.10.XX.XX/24. In this example, 24 indicates that the prefix of each IP address in the IP address whitelist is 24 bits in length. You can replace 24 with a value within the range of 1 to 32.</li>
* </ul>
* <p>If this parameter is not specified, the default IP address whitelist is used.</p>
*
* <strong>example:</strong>
* <p>172.16.1.14,172.16.1.13,172.16.1.44,172.16.1.43,172.16.1.74,172.16.1.73</p>
*/
public Builder securityIPList(String securityIPList) {
this.securityIPList = securityIPList;
return this;
}
/**
* <p>The vSwitch ID.</p>
* <blockquote>
* <p> The vSwitch must belong to the same zone as the instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vsw-2zelwi1jd271p670lzl8h</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The ID of the virtual private cloud (VPC).</p>
*
* <strong>example:</strong>
* <p>vpc-wz9rbibex7v0lxbeyo6at</p>
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public DescribeResourceDetailsResponseBody build() {
return new DescribeResourceDetailsResponseBody(this);
}
}
/**
*
* {@link DescribeResourceDetailsResponseBody} extends {@link TeaModel}
*
* <p>DescribeResourceDetailsResponseBody</p>
*/
public static class RdsEcsSecurityGroupRel extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SecurityGroupName")
private String securityGroupName;
private RdsEcsSecurityGroupRel(Builder builder) {
this.securityGroupName = builder.securityGroupName;
}
public static Builder builder() {
return new Builder();
}
public static RdsEcsSecurityGroupRel create() {
return builder().build();
}
/**
* @return securityGroupName
*/
public String getSecurityGroupName() {
return this.securityGroupName;
}
public static final class Builder {
private String securityGroupName;
private Builder() {
}
private Builder(RdsEcsSecurityGroupRel model) {
this.securityGroupName = model.securityGroupName;
}
/**
* <p>The name of the security group.</p>
*
* <strong>example:</strong>
* <p>test_switch</p>
*/
public Builder securityGroupName(String securityGroupName) {
this.securityGroupName = securityGroupName;
return this;
}
public RdsEcsSecurityGroupRel build() {
return new RdsEcsSecurityGroupRel(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeResourceUsageRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeResourceUsageRequest} extends {@link RequestModel}
*
* <p>DescribeResourceUsageRequest</p>
*/
public class DescribeResourceUsageRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeResourceUsageRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeResourceUsageRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeResourceUsageRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeResourceUsageRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeResourceUsageRequest build() {
return new DescribeResourceUsageRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeResourceUsageResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeResourceUsageResponse} extends {@link TeaModel}
*
* <p>DescribeResourceUsageResponse</p>
*/
public class DescribeResourceUsageResponse 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 DescribeResourceUsageResponseBody body;
private DescribeResourceUsageResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeResourceUsageResponse 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 DescribeResourceUsageResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeResourceUsageResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeResourceUsageResponseBody body);
@Override
DescribeResourceUsageResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeResourceUsageResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeResourceUsageResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeResourceUsageResponse 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(DescribeResourceUsageResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeResourceUsageResponse build() {
return new DescribeResourceUsageResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeResourceUsageResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeResourceUsageResponseBody} extends {@link TeaModel}
*
* <p>DescribeResourceUsageResponseBody</p>
*/
public class DescribeResourceUsageResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ArchiveBackupSize")
private Long archiveBackupSize;
@com.aliyun.core.annotation.NameInMap("BackupDataSize")
private Long backupDataSize;
@com.aliyun.core.annotation.NameInMap("BackupEcsSnapshotSize")
private String backupEcsSnapshotSize;
@com.aliyun.core.annotation.NameInMap("BackupLogSize")
private Long backupLogSize;
@com.aliyun.core.annotation.NameInMap("BackupOssDataSize")
private Long backupOssDataSize;
@com.aliyun.core.annotation.NameInMap("BackupOssLogSize")
private Long backupOssLogSize;
@com.aliyun.core.annotation.NameInMap("BackupSize")
private Long backupSize;
@com.aliyun.core.annotation.NameInMap("ColdBackupSize")
private Long coldBackupSize;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DataSize")
private Long dataSize;
@com.aliyun.core.annotation.NameInMap("DiskUsed")
private Long diskUsed;
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.NameInMap("LogSize")
private Long logSize;
@com.aliyun.core.annotation.NameInMap("PaidBackupSize")
private Long paidBackupSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SQLSize")
private Long SQLSize;
private DescribeResourceUsageResponseBody(Builder builder) {
this.archiveBackupSize = builder.archiveBackupSize;
this.backupDataSize = builder.backupDataSize;
this.backupEcsSnapshotSize = builder.backupEcsSnapshotSize;
this.backupLogSize = builder.backupLogSize;
this.backupOssDataSize = builder.backupOssDataSize;
this.backupOssLogSize = builder.backupOssLogSize;
this.backupSize = builder.backupSize;
this.coldBackupSize = builder.coldBackupSize;
this.DBInstanceId = builder.DBInstanceId;
this.dataSize = builder.dataSize;
this.diskUsed = builder.diskUsed;
this.engine = builder.engine;
this.logSize = builder.logSize;
this.paidBackupSize = builder.paidBackupSize;
this.requestId = builder.requestId;
this.SQLSize = builder.SQLSize;
}
public static Builder builder() {
return new Builder();
}
public static DescribeResourceUsageResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return archiveBackupSize
*/
public Long getArchiveBackupSize() {
return this.archiveBackupSize;
}
/**
* @return backupDataSize
*/
public Long getBackupDataSize() {
return this.backupDataSize;
}
/**
* @return backupEcsSnapshotSize
*/
public String getBackupEcsSnapshotSize() {
return this.backupEcsSnapshotSize;
}
/**
* @return backupLogSize
*/
public Long getBackupLogSize() {
return this.backupLogSize;
}
/**
* @return backupOssDataSize
*/
public Long getBackupOssDataSize() {
return this.backupOssDataSize;
}
/**
* @return backupOssLogSize
*/
public Long getBackupOssLogSize() {
return this.backupOssLogSize;
}
/**
* @return backupSize
*/
public Long getBackupSize() {
return this.backupSize;
}
/**
* @return coldBackupSize
*/
public Long getColdBackupSize() {
return this.coldBackupSize;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return dataSize
*/
public Long getDataSize() {
return this.dataSize;
}
/**
* @return diskUsed
*/
public Long getDiskUsed() {
return this.diskUsed;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return logSize
*/
public Long getLogSize() {
return this.logSize;
}
/**
* @return paidBackupSize
*/
public Long getPaidBackupSize() {
return this.paidBackupSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return SQLSize
*/
public Long getSQLSize() {
return this.SQLSize;
}
public static final class Builder {
private Long archiveBackupSize;
private Long backupDataSize;
private String backupEcsSnapshotSize;
private Long backupLogSize;
private Long backupOssDataSize;
private Long backupOssLogSize;
private Long backupSize;
private Long coldBackupSize;
private String DBInstanceId;
private Long dataSize;
private Long diskUsed;
private String engine;
private Long logSize;
private Long paidBackupSize;
private String requestId;
private Long SQLSize;
private Builder() {
}
private Builder(DescribeResourceUsageResponseBody model) {
this.archiveBackupSize = model.archiveBackupSize;
this.backupDataSize = model.backupDataSize;
this.backupEcsSnapshotSize = model.backupEcsSnapshotSize;
this.backupLogSize = model.backupLogSize;
this.backupOssDataSize = model.backupOssDataSize;
this.backupOssLogSize = model.backupOssLogSize;
this.backupSize = model.backupSize;
this.coldBackupSize = model.coldBackupSize;
this.DBInstanceId = model.DBInstanceId;
this.dataSize = model.dataSize;
this.diskUsed = model.diskUsed;
this.engine = model.engine;
this.logSize = model.logSize;
this.paidBackupSize = model.paidBackupSize;
this.requestId = model.requestId;
this.SQLSize = model.SQLSize;
}
/**
* <p>The storage that is occupied by archived backup files on the instance. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder archiveBackupSize(Long archiveBackupSize) {
this.archiveBackupSize = archiveBackupSize;
return this;
}
/**
* <p>The storage that is occupied by data backup files, excluding archived backup files, on the instance. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>94324736</p>
*/
public Builder backupDataSize(Long backupDataSize) {
this.backupDataSize = backupDataSize;
return this;
}
/**
* <p>The storage capacity that is used to store the snapshot backup files of the <strong>RDS for SQL Server</strong> instance. Unit: bytes. The value 0 indicates that no snapshot backup files are stored for the instance.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder backupEcsSnapshotSize(String backupEcsSnapshotSize) {
this.backupEcsSnapshotSize = backupEcsSnapshotSize;
return this;
}
/**
* <p>The storage that is occupied by log backup files, excluding archived backup files, on the instance. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>45145563</p>
*/
public Builder backupLogSize(Long backupLogSize) {
this.backupLogSize = backupLogSize;
return this;
}
/**
* <p>The size of data backup files that are stored in Object Storage Service (OSS) buckets. Unit: bytes. The value 0 indicates no data backup files are stored in OSS buckets.</p>
*
* <strong>example:</strong>
* <p>8821760</p>
*/
public Builder backupOssDataSize(Long backupOssDataSize) {
this.backupOssDataSize = backupOssDataSize;
return this;
}
/**
* <p>The size of log backup files that are stored in OSS buckets. Unit: bytes. The value 0 indicates no log backup files are stored in OSS buckets.</p>
*
* <strong>example:</strong>
* <p>44180999</p>
*/
public Builder backupOssLogSize(Long backupOssLogSize) {
this.backupOssLogSize = backupOssLogSize;
return this;
}
/**
* <p>The storage that is used to store backup files. Unit: bytes. The value -1 indicates that no backup files are stored.</p>
*
* <strong>example:</strong>
* <p>53002759</p>
*/
public Builder backupSize(Long backupSize) {
this.backupSize = backupSize;
return this;
}
/**
* <p>The storage that is used to store cold backup files. Unit: bytes. The value -1 indicates that no cold backup files are stored.</p>
*
* <strong>example:</strong>
* <p>2337275904</p>
*/
public Builder coldBackupSize(Long coldBackupSize) {
this.coldBackupSize = coldBackupSize;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The storage that is used to store data files. Unit: bytes. The value -1 indicates that no data files are stored.</p>
*
* <strong>example:</strong>
* <p>1292094741</p>
*/
public Builder dataSize(Long dataSize) {
this.dataSize = dataSize;
return this;
}
/**
* <p>The total storage that is occupied by data files and log files on the instance. Unit: bytes. The value -1 indicates that no data files or log files are stored on the instance.</p>
*
* <strong>example:</strong>
* <p>2337275904</p>
*/
public Builder diskUsed(Long diskUsed) {
this.diskUsed = diskUsed;
return this;
}
/**
* <p>The database engine of the instance.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.engine = engine;
return this;
}
/**
* <p>The storage that is used to store log files. Unit: bytes. The value -1 indicates that no log files are stored.</p>
*
* <strong>example:</strong>
* <p>1045181163</p>
*/
public Builder logSize(Long logSize) {
this.logSize = logSize;
return this;
}
/**
* <p>The backup storage for which you must pay. The system provides a free quota on backup storage. You must pay for the backup storage that exceeds the free quota. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder paidBackupSize(Long paidBackupSize) {
this.paidBackupSize = paidBackupSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>F937E173-559C-4498-8D90-38D32342B9E4</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The storage that is occupied to execute SQL statements on the instance. Unit: bytes. The value -1 indicates that no SQL statements are executed.</p>
*
* <strong>example:</strong>
* <p>315052751</p>
*/
public Builder SQLSize(Long SQLSize) {
this.SQLSize = SQLSize;
return this;
}
public DescribeResourceUsageResponseBody build() {
return new DescribeResourceUsageResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLCollectorPolicyRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLCollectorPolicyRequest} extends {@link RequestModel}
*
* <p>DescribeSQLCollectorPolicyRequest</p>
*/
public class DescribeSQLCollectorPolicyRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeSQLCollectorPolicyRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSQLCollectorPolicyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeSQLCollectorPolicyRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeSQLCollectorPolicyRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCzxxxxxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The resource group ID. You can call the DescribeDBInstanceAttribute operation to query the resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmyxxxxxxxxxx</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeSQLCollectorPolicyRequest build() {
return new DescribeSQLCollectorPolicyRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLCollectorPolicyResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLCollectorPolicyResponse} extends {@link TeaModel}
*
* <p>DescribeSQLCollectorPolicyResponse</p>
*/
public class DescribeSQLCollectorPolicyResponse 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 DescribeSQLCollectorPolicyResponseBody body;
private DescribeSQLCollectorPolicyResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSQLCollectorPolicyResponse 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 DescribeSQLCollectorPolicyResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSQLCollectorPolicyResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSQLCollectorPolicyResponseBody body);
@Override
DescribeSQLCollectorPolicyResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSQLCollectorPolicyResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSQLCollectorPolicyResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSQLCollectorPolicyResponse 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(DescribeSQLCollectorPolicyResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSQLCollectorPolicyResponse build() {
return new DescribeSQLCollectorPolicyResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLCollectorPolicyResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLCollectorPolicyResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLCollectorPolicyResponseBody</p>
*/
public class DescribeSQLCollectorPolicyResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SQLCollectorStatus")
private String SQLCollectorStatus;
@com.aliyun.core.annotation.NameInMap("StoragePeriod")
private Integer storagePeriod;
private DescribeSQLCollectorPolicyResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.SQLCollectorStatus = builder.SQLCollectorStatus;
this.storagePeriod = builder.storagePeriod;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSQLCollectorPolicyResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return SQLCollectorStatus
*/
public String getSQLCollectorStatus() {
return this.SQLCollectorStatus;
}
/**
* @return storagePeriod
*/
public Integer getStoragePeriod() {
return this.storagePeriod;
}
public static final class Builder {
private String requestId;
private String SQLCollectorStatus;
private Integer storagePeriod;
private Builder() {
}
private Builder(DescribeSQLCollectorPolicyResponseBody model) {
this.requestId = model.requestId;
this.SQLCollectorStatus = model.SQLCollectorStatus;
this.storagePeriod = model.storagePeriod;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>1AD222E9-E606-4A42-BF6D-8A4442913CEF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The status of the SQL Explorer (SQL Audit) feature. Valid values:</p>
* <ul>
* <li><strong>Enable</strong></li>
* <li><strong>Disabled</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Enable</p>
*/
public Builder SQLCollectorStatus(String SQLCollectorStatus) {
this.SQLCollectorStatus = SQLCollectorStatus;
return this;
}
/**
* <p>A reserved parameter.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder storagePeriod(Integer storagePeriod) {
this.storagePeriod = storagePeriod;
return this;
}
public DescribeSQLCollectorPolicyResponseBody build() {
return new DescribeSQLCollectorPolicyResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLCollectorRetentionRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLCollectorRetentionRequest} extends {@link RequestModel}
*
* <p>DescribeSQLCollectorRetentionRequest</p>
*/
public class DescribeSQLCollectorRetentionRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
private DescribeSQLCollectorRetentionRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityToken = builder.securityToken;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSQLCollectorRetentionRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
public static final class Builder extends Request.Builder<DescribeSQLCollectorRetentionRequest, Builder> {
private String regionId;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String securityToken;
private Builder() {
super();
}
private Builder(DescribeSQLCollectorRetentionRequest request) {
super(request);
this.regionId = request.regionId;
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityToken = request.securityToken;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The resource group ID. You can call the DescribeDBInstanceAttribute operation to query the resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmyxxxx</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
@Override
public DescribeSQLCollectorRetentionRequest build() {
return new DescribeSQLCollectorRetentionRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLCollectorRetentionResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLCollectorRetentionResponse} extends {@link TeaModel}
*
* <p>DescribeSQLCollectorRetentionResponse</p>
*/
public class DescribeSQLCollectorRetentionResponse 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 DescribeSQLCollectorRetentionResponseBody body;
private DescribeSQLCollectorRetentionResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSQLCollectorRetentionResponse 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 DescribeSQLCollectorRetentionResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSQLCollectorRetentionResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSQLCollectorRetentionResponseBody body);
@Override
DescribeSQLCollectorRetentionResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSQLCollectorRetentionResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSQLCollectorRetentionResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSQLCollectorRetentionResponse 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(DescribeSQLCollectorRetentionResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSQLCollectorRetentionResponse build() {
return new DescribeSQLCollectorRetentionResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLCollectorRetentionResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLCollectorRetentionResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLCollectorRetentionResponseBody</p>
*/
public class DescribeSQLCollectorRetentionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConfigValue")
private String configValue;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeSQLCollectorRetentionResponseBody(Builder builder) {
this.configValue = builder.configValue;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSQLCollectorRetentionResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return configValue
*/
public String getConfigValue() {
return this.configValue;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String configValue;
private String requestId;
private Builder() {
}
private Builder(DescribeSQLCollectorRetentionResponseBody model) {
this.configValue = model.configValue;
this.requestId = model.requestId;
}
/**
* <p>The retention period of the log files that are generated by the SQL Explorer feature. Valid values:</p>
* <ul>
* <li><strong>30:</strong> 30 days</li>
* <li><strong>180:</strong> 180 days</li>
* <li><strong>365</strong>: one year</li>
* <li><strong>1095</strong>: three years</li>
* <li><strong>1825</strong>: five years</li>
* </ul>
* <blockquote>
* <p> The retention period of the log files that are generated by the SQL Explorer feature on ApsaraDB RDS for PostgreSQL instances and ApsaraDB RDS for SQL Server instances is fixed as 30 days.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>365</p>
*/
public Builder configValue(String configValue) {
this.configValue = configValue;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>D5CEDCC2-CA75-43F7-9508-92F418CE6391</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeSQLCollectorRetentionResponseBody build() {
return new DescribeSQLCollectorRetentionResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLLogFilesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLLogFilesRequest} extends {@link RequestModel}
*
* <p>DescribeSQLLogFilesRequest</p>
*/
public class DescribeSQLLogFilesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FileName")
private String fileName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 2147483647, minimum = 1)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 200, minimum = 30)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeSQLLogFilesRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.fileName = builder.fileName;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSQLLogFilesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return fileName
*/
public String getFileName() {
return this.fileName;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeSQLLogFilesRequest, Builder> {
private String DBInstanceId;
private String fileName;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeSQLLogFilesRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.fileName = request.fileName;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The name of the audit log file.</p>
*
* <strong>example:</strong>
* <p>custinsxxxxx.csv</p>
*/
public Builder fileName(String fileName) {
this.putQueryParameter("FileName", fileName);
this.fileName = fileName;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Valid values: <strong>1 to 100000</strong>. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid values: <strong>30 to 200</strong>. Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeSQLLogFilesRequest build() {
return new DescribeSQLLogFilesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLLogFilesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLLogFilesResponse} extends {@link TeaModel}
*
* <p>DescribeSQLLogFilesResponse</p>
*/
public class DescribeSQLLogFilesResponse 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 DescribeSQLLogFilesResponseBody body;
private DescribeSQLLogFilesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSQLLogFilesResponse 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 DescribeSQLLogFilesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSQLLogFilesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSQLLogFilesResponseBody body);
@Override
DescribeSQLLogFilesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSQLLogFilesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSQLLogFilesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSQLLogFilesResponse 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(DescribeSQLLogFilesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSQLLogFilesResponse build() {
return new DescribeSQLLogFilesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLLogFilesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLLogFilesResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogFilesResponseBody</p>
*/
public class DescribeSQLLogFilesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeSQLLogFilesResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSQLLogFilesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeSQLLogFilesResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>An array that consists of the returned audit log files.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>1AD222E9-E606-4A42-BF6D-8A4442913CEF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeSQLLogFilesResponseBody build() {
return new DescribeSQLLogFilesResponseBody(this);
}
}
/**
*
* {@link DescribeSQLLogFilesResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogFilesResponseBody</p>
*/
public static class LogFile extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FileID")
private String fileID;
@com.aliyun.core.annotation.NameInMap("LogDownloadURL")
private String logDownloadURL;
@com.aliyun.core.annotation.NameInMap("LogEndTime")
private String logEndTime;
@com.aliyun.core.annotation.NameInMap("LogSize")
private String logSize;
@com.aliyun.core.annotation.NameInMap("LogStartTime")
private String logStartTime;
@com.aliyun.core.annotation.NameInMap("LogStatus")
private String logStatus;
private LogFile(Builder builder) {
this.fileID = builder.fileID;
this.logDownloadURL = builder.logDownloadURL;
this.logEndTime = builder.logEndTime;
this.logSize = builder.logSize;
this.logStartTime = builder.logStartTime;
this.logStatus = builder.logStatus;
}
public static Builder builder() {
return new Builder();
}
public static LogFile create() {
return builder().build();
}
/**
* @return fileID
*/
public String getFileID() {
return this.fileID;
}
/**
* @return logDownloadURL
*/
public String getLogDownloadURL() {
return this.logDownloadURL;
}
/**
* @return logEndTime
*/
public String getLogEndTime() {
return this.logEndTime;
}
/**
* @return logSize
*/
public String getLogSize() {
return this.logSize;
}
/**
* @return logStartTime
*/
public String getLogStartTime() {
return this.logStartTime;
}
/**
* @return logStatus
*/
public String getLogStatus() {
return this.logStatus;
}
public static final class Builder {
private String fileID;
private String logDownloadURL;
private String logEndTime;
private String logSize;
private String logStartTime;
private String logStatus;
private Builder() {
}
private Builder(LogFile model) {
this.fileID = model.fileID;
this.logDownloadURL = model.logDownloadURL;
this.logEndTime = model.logEndTime;
this.logSize = model.logSize;
this.logStartTime = model.logStartTime;
this.logStatus = model.logStatus;
}
/**
* <p>The file name.</p>
*
* <strong>example:</strong>
* <p>custinsxxxxx.csv</p>
*/
public Builder fileID(String fileID) {
this.fileID = fileID;
return this;
}
/**
* <p>The download URL of the file. If the audit log file cannot be downloaded, this parameter is null.</p>
*
* <strong>example:</strong>
* <p><a href="http://rdslog-hz-v3.oss-cn-hangzhou.aliyuncs.com/xxxxx">http://rdslog-hz-v3.oss-cn-hangzhou.aliyuncs.com/xxxxx</a></p>
*/
public Builder logDownloadURL(String logDownloadURL) {
this.logDownloadURL = logDownloadURL;
return this;
}
/**
* <p>The time at which the last SQL statement recorded in the audit log file was executed. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2015-05-24T07:00:00Z</p>
*/
public Builder logEndTime(String logEndTime) {
this.logEndTime = logEndTime;
return this;
}
/**
* <p>The size of the audit log file. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>3000</p>
*/
public Builder logSize(String logSize) {
this.logSize = logSize;
return this;
}
/**
* <p>The time at which the first SQL statement recorded in the audit log file was executed. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2015-05-23T07:00:00Z</p>
*/
public Builder logStartTime(String logStartTime) {
this.logStartTime = logStartTime;
return this;
}
/**
* <p>The status of the audit log file. Valid values:</p>
* <ul>
* <li><strong>Success</strong></li>
* <li><strong>Failed</strong></li>
* <li><strong>Generating</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder logStatus(String logStatus) {
this.logStatus = logStatus;
return this;
}
public LogFile build() {
return new LogFile(this);
}
}
}
/**
*
* {@link DescribeSQLLogFilesResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogFilesResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LogFile")
private java.util.List<LogFile> logFile;
private Items(Builder builder) {
this.logFile = builder.logFile;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return logFile
*/
public java.util.List<LogFile> getLogFile() {
return this.logFile;
}
public static final class Builder {
private java.util.List<LogFile> logFile;
private Builder() {
}
private Builder(Items model) {
this.logFile = model.logFile;
}
/**
* LogFile.
*/
public Builder logFile(java.util.List<LogFile> logFile) {
this.logFile = logFile;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLLogRecordsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLLogRecordsRequest} extends {@link RequestModel}
*
* <p>DescribeSQLLogRecordsRequest</p>
*/
public class DescribeSQLLogRecordsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Database")
private String database;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
@com.aliyun.core.annotation.Validation(required = true)
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Form")
private String form;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 2147483647, minimum = 1)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 200, minimum = 30)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("QueryKeywords")
private String queryKeywords;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SQLId")
private Long SQLId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
@com.aliyun.core.annotation.Validation(required = true)
private String startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("User")
private String user;
private DescribeSQLLogRecordsRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.database = builder.database;
this.endTime = builder.endTime;
this.form = builder.form;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.queryKeywords = builder.queryKeywords;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.SQLId = builder.SQLId;
this.startTime = builder.startTime;
this.user = builder.user;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSQLLogRecordsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return database
*/
public String getDatabase() {
return this.database;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return form
*/
public String getForm() {
return this.form;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return queryKeywords
*/
public String getQueryKeywords() {
return this.queryKeywords;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return SQLId
*/
public Long getSQLId() {
return this.SQLId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return user
*/
public String getUser() {
return this.user;
}
public static final class Builder extends Request.Builder<DescribeSQLLogRecordsRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String database;
private String endTime;
private String form;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String queryKeywords;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Long SQLId;
private String startTime;
private String user;
private Builder() {
super();
}
private Builder(DescribeSQLLogRecordsRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.database = request.database;
this.endTime = request.endTime;
this.form = request.form;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.queryKeywords = request.queryKeywords;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.SQLId = request.SQLId;
this.startTime = request.startTime;
this.user = request.user;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the generated token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCzxxxxxxx</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The name of the database. You can enter only one database name. If you specify this parameter, this operation returns the logs that are generated only for the specified database. If you do not specify this parameter, this operation returns the logs that are generated for all databases on the instance.</p>
*
* <strong>example:</strong>
* <p>Database</p>
*/
public Builder database(String database) {
this.putQueryParameter("Database", database);
this.database = database;
return this;
}
/**
* <p>The end of the time range to query. The end time must be later than the start time. The time span between the start time and the end time must be less than 15 days. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time must be in UTC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2011-06-11T15:00:00Z</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>Specifies whether to generate an SQL audit log file or return SQL audit logs. Valid values:</p>
* <ul>
* <li><strong>File</strong>: If you set this parameter to File, this operation generates an SQL audit log file and returns only common response parameters. After you call this operation, you must call the DescribeSQLLogFiles operation to obtain the download URL of the SQL audit log file.</li>
* <li><strong>Stream</strong> (default): If you set this parameter to Stream, this operation returns SQL audit logs.</li>
* </ul>
* <blockquote>
* <p> If you set this parameter to <strong>File</strong>, only ApsaraDB RDS for MySQL instances that use local disks and ApsaraDB RDS for SQL Server instances are supported, and a maximum of 1 million logs are returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Stream</p>
*/
public Builder form(String form) {
this.putQueryParameter("Form", form);
this.form = form;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Pages start from 1.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid values: <strong>30</strong> to <strong>100</strong>. Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The keyword that is used for the query.</p>
* <ul>
* <li>When you call this operation and set the <strong>Form</strong> parameter to <strong>File</strong> to generate an audit file, you cannot filter log entries by keyword.</li>
* <li>You can specify up to 10 keywords. The keywords are evaluated by using the <strong>AND</strong> operator. Separate multiple keywords with spaces.</li>
* <li>If a field name in the specified SQL statement is enclosed in grave accents (`) and you want to use the field name as a keyword, you must enter the grave accents (`) as part of the field name. For example, if the field name is `id`, enter `id` instead of id.</li>
* </ul>
* <blockquote>
* <p> After you enter a keyword, the system matches the keyword based on the <strong>Database</strong>, <strong>User</strong>, and <strong>QueryKeywords</strong> parameters. The parameters are evaluated by using the <strong>AND</strong> operator.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>table_name</p>
*/
public Builder queryKeywords(String queryKeywords) {
this.putQueryParameter("QueryKeywords", queryKeywords);
this.queryKeywords = queryKeywords;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The unique ID of the SQL statement.</p>
*
* <strong>example:</strong>
* <p>25623548</p>
*/
public Builder SQLId(Long SQLId) {
this.putQueryParameter("SQLId", SQLId);
this.SQLId = SQLId;
return this;
}
/**
* <p>The beginning of the time range to query. You can query data in the last 15 days before the current date. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time must be in UTC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2011-06-01T15:00:00Z</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>The username of the account. You can enter only one username. If you specify this parameter, this operation returns the logs that are generated only for the specified account. If you do not specify this parameter, this operation returns the logs that are generated for all accounts on the instance.</p>
*
* <strong>example:</strong>
* <p>user</p>
*/
public Builder user(String user) {
this.putQueryParameter("User", user);
this.user = user;
return this;
}
@Override
public DescribeSQLLogRecordsRequest build() {
return new DescribeSQLLogRecordsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLLogRecordsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLLogRecordsResponse} extends {@link TeaModel}
*
* <p>DescribeSQLLogRecordsResponse</p>
*/
public class DescribeSQLLogRecordsResponse 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 DescribeSQLLogRecordsResponseBody body;
private DescribeSQLLogRecordsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSQLLogRecordsResponse 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 DescribeSQLLogRecordsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSQLLogRecordsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSQLLogRecordsResponseBody body);
@Override
DescribeSQLLogRecordsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSQLLogRecordsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSQLLogRecordsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSQLLogRecordsResponse 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(DescribeSQLLogRecordsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSQLLogRecordsResponse build() {
return new DescribeSQLLogRecordsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLLogRecordsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLLogRecordsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogRecordsResponseBody</p>
*/
public class DescribeSQLLogRecordsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Long totalRecordCount;
private DescribeSQLLogRecordsResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSQLLogRecordsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Long getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Long totalRecordCount;
private Builder() {
}
private Builder(DescribeSQLLogRecordsResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The details about each SQL audit log entry.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of SQL audit log entries on the current page.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>08A3B71B-FE08-4B03-974F-CC7EA6DB1828</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder totalRecordCount(Long totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeSQLLogRecordsResponseBody build() {
return new DescribeSQLLogRecordsResponseBody(this);
}
}
/**
*
* {@link DescribeSQLLogRecordsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogRecordsResponseBody</p>
*/
public static class SQLRecord extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccountName")
private String accountName;
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.NameInMap("ExecuteTime")
private String executeTime;
@com.aliyun.core.annotation.NameInMap("HostAddress")
private String hostAddress;
@com.aliyun.core.annotation.NameInMap("ReturnRowCounts")
private Long returnRowCounts;
@com.aliyun.core.annotation.NameInMap("SQLText")
private String SQLText;
@com.aliyun.core.annotation.NameInMap("ThreadID")
private String threadID;
@com.aliyun.core.annotation.NameInMap("TotalExecutionTimes")
private Long totalExecutionTimes;
private SQLRecord(Builder builder) {
this.accountName = builder.accountName;
this.DBName = builder.DBName;
this.executeTime = builder.executeTime;
this.hostAddress = builder.hostAddress;
this.returnRowCounts = builder.returnRowCounts;
this.SQLText = builder.SQLText;
this.threadID = builder.threadID;
this.totalExecutionTimes = builder.totalExecutionTimes;
}
public static Builder builder() {
return new Builder();
}
public static SQLRecord create() {
return builder().build();
}
/**
* @return accountName
*/
public String getAccountName() {
return this.accountName;
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return executeTime
*/
public String getExecuteTime() {
return this.executeTime;
}
/**
* @return hostAddress
*/
public String getHostAddress() {
return this.hostAddress;
}
/**
* @return returnRowCounts
*/
public Long getReturnRowCounts() {
return this.returnRowCounts;
}
/**
* @return SQLText
*/
public String getSQLText() {
return this.SQLText;
}
/**
* @return threadID
*/
public String getThreadID() {
return this.threadID;
}
/**
* @return totalExecutionTimes
*/
public Long getTotalExecutionTimes() {
return this.totalExecutionTimes;
}
public static final class Builder {
private String accountName;
private String DBName;
private String executeTime;
private String hostAddress;
private Long returnRowCounts;
private String SQLText;
private String threadID;
private Long totalExecutionTimes;
private Builder() {
}
private Builder(SQLRecord model) {
this.accountName = model.accountName;
this.DBName = model.DBName;
this.executeTime = model.executeTime;
this.hostAddress = model.hostAddress;
this.returnRowCounts = model.returnRowCounts;
this.SQLText = model.SQLText;
this.threadID = model.threadID;
this.totalExecutionTimes = model.totalExecutionTimes;
}
/**
* <p>The username of the account that is recorded in the SQL audit log entry.</p>
*
* <strong>example:</strong>
* <p>accounttest</p>
*/
public Builder accountName(String accountName) {
this.accountName = accountName;
return this;
}
/**
* <p>The database name.</p>
*
* <strong>example:</strong>
* <p>testDB</p>
*/
public Builder DBName(String DBName) {
this.DBName = DBName;
return this;
}
/**
* <p>The time at which the SQL statement was executed. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2011-06-11T15:00:23Z</p>
*/
public Builder executeTime(String executeTime) {
this.executeTime = executeTime;
return this;
}
/**
* <p>The IP address of the client that is connected to the instance.</p>
*
* <strong>example:</strong>
* <p>192.168.0.121</p>
*/
public Builder hostAddress(String hostAddress) {
this.hostAddress = hostAddress;
return this;
}
/**
* <p>The number of SQL audit log entries that are returned.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder returnRowCounts(Long returnRowCounts) {
this.returnRowCounts = returnRowCounts;
return this;
}
/**
* <p>The SQL statement.</p>
*
* <strong>example:</strong>
* <p>update test.zxb set id=0 limit 1</p>
*/
public Builder SQLText(String SQLText) {
this.SQLText = SQLText;
return this;
}
/**
* <p>The thread ID.</p>
*
* <strong>example:</strong>
* <p>1025865428</p>
*/
public Builder threadID(String threadID) {
this.threadID = threadID;
return this;
}
/**
* <p>The execution duration of the SQL statement. Unit: microseconds.</p>
*
* <strong>example:</strong>
* <p>600</p>
*/
public Builder totalExecutionTimes(Long totalExecutionTimes) {
this.totalExecutionTimes = totalExecutionTimes;
return this;
}
public SQLRecord build() {
return new SQLRecord(this);
}
}
}
/**
*
* {@link DescribeSQLLogRecordsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogRecordsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SQLRecord")
private java.util.List<SQLRecord> SQLRecord;
private Items(Builder builder) {
this.SQLRecord = builder.SQLRecord;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return SQLRecord
*/
public java.util.List<SQLRecord> getSQLRecord() {
return this.SQLRecord;
}
public static final class Builder {
private java.util.List<SQLRecord> SQLRecord;
private Builder() {
}
private Builder(Items model) {
this.SQLRecord = model.SQLRecord;
}
/**
* SQLRecord.
*/
public Builder SQLRecord(java.util.List<SQLRecord> SQLRecord) {
this.SQLRecord = SQLRecord;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLLogReportListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLLogReportListRequest} extends {@link RequestModel}
*
* <p>DescribeSQLLogReportListRequest</p>
*/
public class DescribeSQLLogReportListRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
@com.aliyun.core.annotation.Validation(required = true)
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 2147483647, minimum = 1)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 50, minimum = 1)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
@com.aliyun.core.annotation.Validation(required = true)
private String startTime;
private DescribeSQLLogReportListRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.endTime = builder.endTime;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSQLLogReportListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeSQLLogReportListRequest, Builder> {
private String DBInstanceId;
private String endTime;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String startTime;
private Builder() {
super();
}
private Builder(DescribeSQLLogReportListRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.endTime = request.endTime;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.startTime = request.startTime;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The end of the time range to query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-ddTHH:mm:ssZ</em> format. The time must be in UTC.**</p>
* <blockquote>
* <p> The end time must be later than the start time.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2021-03-18T16:00:00Z</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Valid values: any <strong>non-zero</strong> positive integer.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid values:</p>
* <ul>
* <li><strong>30</strong></li>
* <li><strong>50</strong></li>
* <li><strong>100</strong></li>
* </ul>
* <p>Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The beginning of the time range to query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time must be in UTC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2021-03-13T16:00:00Z</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeSQLLogReportListRequest build() {
return new DescribeSQLLogReportListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLLogReportListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLLogReportListResponse} extends {@link TeaModel}
*
* <p>DescribeSQLLogReportListResponse</p>
*/
public class DescribeSQLLogReportListResponse 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 DescribeSQLLogReportListResponseBody body;
private DescribeSQLLogReportListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSQLLogReportListResponse 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 DescribeSQLLogReportListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSQLLogReportListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSQLLogReportListResponseBody body);
@Override
DescribeSQLLogReportListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSQLLogReportListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSQLLogReportListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSQLLogReportListResponse 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(DescribeSQLLogReportListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSQLLogReportListResponse build() {
return new DescribeSQLLogReportListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSQLLogReportListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSQLLogReportListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogReportListResponseBody</p>
*/
public class DescribeSQLLogReportListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeSQLLogReportListResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSQLLogReportListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeSQLLogReportListResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>An array that consists of SQL log reports.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of SQL log reports on the current page.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>08A3B71B-FE08-4B03-974F-CC7EA6DB1828</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeSQLLogReportListResponseBody build() {
return new DescribeSQLLogReportListResponseBody(this);
}
}
/**
*
* {@link DescribeSQLLogReportListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogReportListResponseBody</p>
*/
public static class LatencyTopNItem extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AvgLatency")
private Long avgLatency;
@com.aliyun.core.annotation.NameInMap("SQLExecuteTimes")
private Long SQLExecuteTimes;
@com.aliyun.core.annotation.NameInMap("SQLText")
private String SQLText;
private LatencyTopNItem(Builder builder) {
this.avgLatency = builder.avgLatency;
this.SQLExecuteTimes = builder.SQLExecuteTimes;
this.SQLText = builder.SQLText;
}
public static Builder builder() {
return new Builder();
}
public static LatencyTopNItem create() {
return builder().build();
}
/**
* @return avgLatency
*/
public Long getAvgLatency() {
return this.avgLatency;
}
/**
* @return SQLExecuteTimes
*/
public Long getSQLExecuteTimes() {
return this.SQLExecuteTimes;
}
/**
* @return SQLText
*/
public String getSQLText() {
return this.SQLText;
}
public static final class Builder {
private Long avgLatency;
private Long SQLExecuteTimes;
private String SQLText;
private Builder() {
}
private Builder(LatencyTopNItem model) {
this.avgLatency = model.avgLatency;
this.SQLExecuteTimes = model.SQLExecuteTimes;
this.SQLText = model.SQLText;
}
/**
* <p>The average time that is required to execute the SQL statement. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>500</p>
*/
public Builder avgLatency(Long avgLatency) {
this.avgLatency = avgLatency;
return this;
}
/**
* <p>The number of times that the SQL statement is executed.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder SQLExecuteTimes(Long SQLExecuteTimes) {
this.SQLExecuteTimes = SQLExecuteTimes;
return this;
}
/**
* <p>The SQL statement.</p>
* <blockquote>
* <p> Only the first 128 characters of the SQL statement are returned. In addition, only the SQL statements that take more than 100 ms to execute are returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>SELECT * FROM table_name;</p>
*/
public Builder SQLText(String SQLText) {
this.SQLText = SQLText;
return this;
}
public LatencyTopNItem build() {
return new LatencyTopNItem(this);
}
}
}
/**
*
* {@link DescribeSQLLogReportListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogReportListResponseBody</p>
*/
public static class LatencyTopNItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LatencyTopNItem")
private java.util.List<LatencyTopNItem> latencyTopNItem;
private LatencyTopNItems(Builder builder) {
this.latencyTopNItem = builder.latencyTopNItem;
}
public static Builder builder() {
return new Builder();
}
public static LatencyTopNItems create() {
return builder().build();
}
/**
* @return latencyTopNItem
*/
public java.util.List<LatencyTopNItem> getLatencyTopNItem() {
return this.latencyTopNItem;
}
public static final class Builder {
private java.util.List<LatencyTopNItem> latencyTopNItem;
private Builder() {
}
private Builder(LatencyTopNItems model) {
this.latencyTopNItem = model.latencyTopNItem;
}
/**
* LatencyTopNItem.
*/
public Builder latencyTopNItem(java.util.List<LatencyTopNItem> latencyTopNItem) {
this.latencyTopNItem = latencyTopNItem;
return this;
}
public LatencyTopNItems build() {
return new LatencyTopNItems(this);
}
}
}
/**
*
* {@link DescribeSQLLogReportListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogReportListResponseBody</p>
*/
public static class QPSTopNItem extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SQLExecuteTimes")
private Long SQLExecuteTimes;
@com.aliyun.core.annotation.NameInMap("SQLText")
private String SQLText;
private QPSTopNItem(Builder builder) {
this.SQLExecuteTimes = builder.SQLExecuteTimes;
this.SQLText = builder.SQLText;
}
public static Builder builder() {
return new Builder();
}
public static QPSTopNItem create() {
return builder().build();
}
/**
* @return SQLExecuteTimes
*/
public Long getSQLExecuteTimes() {
return this.SQLExecuteTimes;
}
/**
* @return SQLText
*/
public String getSQLText() {
return this.SQLText;
}
public static final class Builder {
private Long SQLExecuteTimes;
private String SQLText;
private Builder() {
}
private Builder(QPSTopNItem model) {
this.SQLExecuteTimes = model.SQLExecuteTimes;
this.SQLText = model.SQLText;
}
/**
* <p>The number of times that the SQL statement is executed.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder SQLExecuteTimes(Long SQLExecuteTimes) {
this.SQLExecuteTimes = SQLExecuteTimes;
return this;
}
/**
* <p>The SQL statement.</p>
* <blockquote>
* <p> Only the first 128 characters of the SQL statement are returned. In addition, only the SQL statements that take more than 5 ms to execute are returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>SELECT * FROM table_name;</p>
*/
public Builder SQLText(String SQLText) {
this.SQLText = SQLText;
return this;
}
public QPSTopNItem build() {
return new QPSTopNItem(this);
}
}
}
/**
*
* {@link DescribeSQLLogReportListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogReportListResponseBody</p>
*/
public static class QPSTopNItems extends TeaModel {
@com.aliyun.core.annotation.NameInMap("QPSTopNItem")
private java.util.List<QPSTopNItem> QPSTopNItem;
private QPSTopNItems(Builder builder) {
this.QPSTopNItem = builder.QPSTopNItem;
}
public static Builder builder() {
return new Builder();
}
public static QPSTopNItems create() {
return builder().build();
}
/**
* @return QPSTopNItem
*/
public java.util.List<QPSTopNItem> getQPSTopNItem() {
return this.QPSTopNItem;
}
public static final class Builder {
private java.util.List<QPSTopNItem> QPSTopNItem;
private Builder() {
}
private Builder(QPSTopNItems model) {
this.QPSTopNItem = model.QPSTopNItem;
}
/**
* QPSTopNItem.
*/
public Builder QPSTopNItem(java.util.List<QPSTopNItem> QPSTopNItem) {
this.QPSTopNItem = QPSTopNItem;
return this;
}
public QPSTopNItems build() {
return new QPSTopNItems(this);
}
}
}
/**
*
* {@link DescribeSQLLogReportListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogReportListResponseBody</p>
*/
public static class Item extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LatencyTopNItems")
private LatencyTopNItems latencyTopNItems;
@com.aliyun.core.annotation.NameInMap("QPSTopNItems")
private QPSTopNItems QPSTopNItems;
@com.aliyun.core.annotation.NameInMap("ReportTime")
private String reportTime;
private Item(Builder builder) {
this.latencyTopNItems = builder.latencyTopNItems;
this.QPSTopNItems = builder.QPSTopNItems;
this.reportTime = builder.reportTime;
}
public static Builder builder() {
return new Builder();
}
public static Item create() {
return builder().build();
}
/**
* @return latencyTopNItems
*/
public LatencyTopNItems getLatencyTopNItems() {
return this.latencyTopNItems;
}
/**
* @return QPSTopNItems
*/
public QPSTopNItems getQPSTopNItems() {
return this.QPSTopNItems;
}
/**
* @return reportTime
*/
public String getReportTime() {
return this.reportTime;
}
public static final class Builder {
private LatencyTopNItems latencyTopNItems;
private QPSTopNItems QPSTopNItems;
private String reportTime;
private Builder() {
}
private Builder(Item model) {
this.latencyTopNItems = model.latencyTopNItems;
this.QPSTopNItems = model.QPSTopNItems;
this.reportTime = model.reportTime;
}
/**
* <p>An array that consists of SQL statements executed with the highest latency.</p>
*/
public Builder latencyTopNItems(LatencyTopNItems latencyTopNItems) {
this.latencyTopNItems = latencyTopNItems;
return this;
}
/**
* <p>An array that consists of SQL statements executed the most frequently.</p>
*/
public Builder QPSTopNItems(QPSTopNItems QPSTopNItems) {
this.QPSTopNItems = QPSTopNItems;
return this;
}
/**
* <p>The time when the report was generated. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2019-03-27T16:00:00Z</p>
*/
public Builder reportTime(String reportTime) {
this.reportTime = reportTime;
return this;
}
public Item build() {
return new Item(this);
}
}
}
/**
*
* {@link DescribeSQLLogReportListResponseBody} extends {@link TeaModel}
*
* <p>DescribeSQLLogReportListResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Item")
private java.util.List<Item> item;
private Items(Builder builder) {
this.item = builder.item;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return item
*/
public java.util.List<Item> getItem() {
return this.item;
}
public static final class Builder {
private java.util.List<Item> item;
private Builder() {
}
private Builder(Items model) {
this.item = model.item;
}
/**
* Item.
*/
public Builder item(java.util.List<Item> item) {
this.item = item;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSecretsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecretsRequest} extends {@link RequestModel}
*
* <p>DescribeSecretsRequest</p>
*/
public class DescribeSecretsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AcceptLanguage")
private String acceptLanguage;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DbInstanceId")
private String dbInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Engine")
@com.aliyun.core.annotation.Validation(required = true)
private String engine;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
@com.aliyun.core.annotation.Validation(required = true)
private Long pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(required = true)
private Long pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeSecretsRequest(Builder builder) {
super(builder);
this.acceptLanguage = builder.acceptLanguage;
this.clientToken = builder.clientToken;
this.dbInstanceId = builder.dbInstanceId;
this.engine = builder.engine;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecretsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return acceptLanguage
*/
public String getAcceptLanguage() {
return this.acceptLanguage;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dbInstanceId
*/
public String getDbInstanceId() {
return this.dbInstanceId;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Long getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeSecretsRequest, Builder> {
private String acceptLanguage;
private String clientToken;
private String dbInstanceId;
private String engine;
private String ownerAccount;
private Long ownerId;
private Long pageNumber;
private Long pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeSecretsRequest request) {
super(request);
this.acceptLanguage = request.acceptLanguage;
this.clientToken = request.clientToken;
this.dbInstanceId = request.dbInstanceId;
this.engine = request.engine;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The language of the text within the response. Valid values:</p>
* <ul>
* <li><strong>zh-CN</strong>: Chinese</li>
* <li><strong>en-US</strong>: English</li>
* </ul>
* <blockquote>
* <p>The default value is <strong>en-US</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>en-US</p>
*/
public Builder acceptLanguage(String acceptLanguage) {
this.putQueryParameter("AcceptLanguage", acceptLanguage);
this.acceptLanguage = acceptLanguage;
return this;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCz*****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-xjkljjxxxxx</p>
*/
public Builder dbInstanceId(String dbInstanceId) {
this.putQueryParameter("DbInstanceId", dbInstanceId);
this.dbInstanceId = dbInstanceId;
return this;
}
/**
* <p>The database engine of the database.</p>
* <blockquote>
* <p>Only MySQL is supported.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.putQueryParameter("Engine", engine);
this.engine = engine;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the page to return. Valid values: any non-zero positive integer.</p>
* <blockquote>
* <p>The default value is 1.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Long pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID. You can call the DescribeDBInstanceAttribute operation to query the region ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group to which the instance belongs.</p>
*
* <strong>example:</strong>
* <p>rg-acfmxypivk***</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeSecretsRequest build() {
return new DescribeSecretsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSecretsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecretsResponse} extends {@link TeaModel}
*
* <p>DescribeSecretsResponse</p>
*/
public class DescribeSecretsResponse 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 DescribeSecretsResponseBody body;
private DescribeSecretsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSecretsResponse 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 DescribeSecretsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSecretsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSecretsResponseBody body);
@Override
DescribeSecretsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSecretsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSecretsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSecretsResponse 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(DescribeSecretsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSecretsResponse build() {
return new DescribeSecretsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSecretsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecretsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecretsResponseBody</p>
*/
public class DescribeSecretsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Long pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Secrets")
private java.util.List<Secrets> secrets;
private DescribeSecretsResponseBody(Builder builder) {
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.secrets = builder.secrets;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecretsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageNumber
*/
public Long getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return secrets
*/
public java.util.List<Secrets> getSecrets() {
return this.secrets;
}
public static final class Builder {
private Long pageNumber;
private Long pageSize;
private String requestId;
private java.util.List<Secrets> secrets;
private Builder() {
}
private Builder(DescribeSecretsResponseBody model) {
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.secrets = model.secrets;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Long pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageSize(Long pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>DF4961DD-16F5-5B24-BD4C-0C7788F7ADAF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The details of the credential.</p>
*/
public Builder secrets(java.util.List<Secrets> secrets) {
this.secrets = secrets;
return this;
}
public DescribeSecretsResponseBody build() {
return new DescribeSecretsResponseBody(this);
}
}
/**
*
* {@link DescribeSecretsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecretsResponseBody</p>
*/
public static class Secrets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AccountId")
private String accountId;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SecretArn")
private String secretArn;
@com.aliyun.core.annotation.NameInMap("SecretName")
private String secretName;
@com.aliyun.core.annotation.NameInMap("Username")
private String username;
private Secrets(Builder builder) {
this.accountId = builder.accountId;
this.description = builder.description;
this.regionId = builder.regionId;
this.secretArn = builder.secretArn;
this.secretName = builder.secretName;
this.username = builder.username;
}
public static Builder builder() {
return new Builder();
}
public static Secrets create() {
return builder().build();
}
/**
* @return accountId
*/
public String getAccountId() {
return this.accountId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return secretArn
*/
public String getSecretArn() {
return this.secretArn;
}
/**
* @return secretName
*/
public String getSecretName() {
return this.secretName;
}
/**
* @return username
*/
public String getUsername() {
return this.username;
}
public static final class Builder {
private String accountId;
private String description;
private String regionId;
private String secretArn;
private String secretName;
private String username;
private Builder() {
}
private Builder(Secrets model) {
this.accountId = model.accountId;
this.description = model.description;
this.regionId = model.regionId;
this.secretArn = model.secretArn;
this.secretName = model.secretName;
this.username = model.username;
}
/**
* <p>The ID of the Alibaba Cloud account.</p>
*
* <strong>example:</strong>
* <p>1266348003******</p>
*/
public Builder accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* <p>The description of the credential.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The Alibaba Cloud Resource Name (ARN) of the credential for the created Data API account.</p>
*
* <strong>example:</strong>
* <p>acs:rds:cn-hangzhou:1335786***:dbInstance/rm-bp1m7l3j63****</p>
*/
public Builder secretArn(String secretArn) {
this.secretArn = secretArn;
return this;
}
/**
* <p>The name of the credential.</p>
*
* <strong>example:</strong>
* <p>Foo</p>
*/
public Builder secretName(String secretName) {
this.secretName = secretName;
return this;
}
/**
* <p>The username that is used to access the database.</p>
*
* <strong>example:</strong>
* <p>user_jack</p>
*/
public Builder username(String username) {
this.username = username;
return this;
}
public Secrets build() {
return new Secrets(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSecurityGroupConfigurationRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityGroupConfigurationRequest} extends {@link RequestModel}
*
* <p>DescribeSecurityGroupConfigurationRequest</p>
*/
public class DescribeSecurityGroupConfigurationRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeSecurityGroupConfigurationRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityGroupConfigurationRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeSecurityGroupConfigurationRequest, Builder> {
private String DBInstanceId;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeSecurityGroupConfigurationRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeSecurityGroupConfigurationRequest build() {
return new DescribeSecurityGroupConfigurationRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSecurityGroupConfigurationResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityGroupConfigurationResponse} extends {@link TeaModel}
*
* <p>DescribeSecurityGroupConfigurationResponse</p>
*/
public class DescribeSecurityGroupConfigurationResponse 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 DescribeSecurityGroupConfigurationResponseBody body;
private DescribeSecurityGroupConfigurationResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSecurityGroupConfigurationResponse 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 DescribeSecurityGroupConfigurationResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSecurityGroupConfigurationResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSecurityGroupConfigurationResponseBody body);
@Override
DescribeSecurityGroupConfigurationResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSecurityGroupConfigurationResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSecurityGroupConfigurationResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSecurityGroupConfigurationResponse 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(DescribeSecurityGroupConfigurationResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSecurityGroupConfigurationResponse build() {
return new DescribeSecurityGroupConfigurationResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSecurityGroupConfigurationResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSecurityGroupConfigurationResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityGroupConfigurationResponseBody</p>
*/
public class DescribeSecurityGroupConfigurationResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeSecurityGroupConfigurationResponseBody(Builder builder) {
this.DBInstanceName = builder.DBInstanceName;
this.items = builder.items;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSecurityGroupConfigurationResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String DBInstanceName;
private Items items;
private String requestId;
private Builder() {
}
private Builder(DescribeSecurityGroupConfigurationResponseBody model) {
this.DBInstanceName = model.DBInstanceName;
this.items = model.items;
this.requestId = model.requestId;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxx</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>The information about the ECS security group.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>87BDAE8C-ACB0-4A26-BBCC-7D1DD31D630D</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeSecurityGroupConfigurationResponseBody build() {
return new DescribeSecurityGroupConfigurationResponseBody(this);
}
}
/**
*
* {@link DescribeSecurityGroupConfigurationResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityGroupConfigurationResponseBody</p>
*/
public static class EcsSecurityGroupRelation extends TeaModel {
@com.aliyun.core.annotation.NameInMap("NetworkType")
private String networkType;
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
private String securityGroupId;
@com.aliyun.core.annotation.NameInMap("SecurityGroupName")
private String securityGroupName;
private EcsSecurityGroupRelation(Builder builder) {
this.networkType = builder.networkType;
this.regionId = builder.regionId;
this.securityGroupId = builder.securityGroupId;
this.securityGroupName = builder.securityGroupName;
}
public static Builder builder() {
return new Builder();
}
public static EcsSecurityGroupRelation create() {
return builder().build();
}
/**
* @return networkType
*/
public String getNetworkType() {
return this.networkType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
/**
* @return securityGroupName
*/
public String getSecurityGroupName() {
return this.securityGroupName;
}
public static final class Builder {
private String networkType;
private String regionId;
private String securityGroupId;
private String securityGroupName;
private Builder() {
}
private Builder(EcsSecurityGroupRelation model) {
this.networkType = model.networkType;
this.regionId = model.regionId;
this.securityGroupId = model.securityGroupId;
this.securityGroupName = model.securityGroupName;
}
/**
* <p>The network type of the ECS security group. Valid values:</p>
* <ul>
* <li><strong>Classic</strong></li>
* <li><strong>VPC</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>VPC</p>
*/
public Builder networkType(String networkType) {
this.networkType = networkType;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the ECS security group.</p>
*
* <strong>example:</strong>
* <p>sg-xxxxxxx</p>
*/
public Builder securityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
/**
* <p>The security group name.</p>
*
* <strong>example:</strong>
* <p>security-group-emraccess</p>
*/
public Builder securityGroupName(String securityGroupName) {
this.securityGroupName = securityGroupName;
return this;
}
public EcsSecurityGroupRelation build() {
return new EcsSecurityGroupRelation(this);
}
}
}
/**
*
* {@link DescribeSecurityGroupConfigurationResponseBody} extends {@link TeaModel}
*
* <p>DescribeSecurityGroupConfigurationResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("EcsSecurityGroupRelation")
private java.util.List<EcsSecurityGroupRelation> ecsSecurityGroupRelation;
private Items(Builder builder) {
this.ecsSecurityGroupRelation = builder.ecsSecurityGroupRelation;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return ecsSecurityGroupRelation
*/
public java.util.List<EcsSecurityGroupRelation> getEcsSecurityGroupRelation() {
return this.ecsSecurityGroupRelation;
}
public static final class Builder {
private java.util.List<EcsSecurityGroupRelation> ecsSecurityGroupRelation;
private Builder() {
}
private Builder(Items model) {
this.ecsSecurityGroupRelation = model.ecsSecurityGroupRelation;
}
/**
* EcsSecurityGroupRelation.
*/
public Builder ecsSecurityGroupRelation(java.util.List<EcsSecurityGroupRelation> ecsSecurityGroupRelation) {
this.ecsSecurityGroupRelation = ecsSecurityGroupRelation;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSlotsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSlotsRequest} extends {@link RequestModel}
*
* <p>DescribeSlotsRequest</p>
*/
public class DescribeSlotsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DescribeSlotsRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSlotsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DescribeSlotsRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DescribeSlotsRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <p>You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOC****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pgm-bp102g323jd4****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The resource group ID. You can leave this parameter empty.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DescribeSlotsRequest build() {
return new DescribeSlotsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSlotsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSlotsResponse} extends {@link TeaModel}
*
* <p>DescribeSlotsResponse</p>
*/
public class DescribeSlotsResponse 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 DescribeSlotsResponseBody body;
private DescribeSlotsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSlotsResponse 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 DescribeSlotsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSlotsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSlotsResponseBody body);
@Override
DescribeSlotsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSlotsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSlotsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSlotsResponse 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(DescribeSlotsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSlotsResponse build() {
return new DescribeSlotsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSlotsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSlotsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSlotsResponseBody</p>
*/
public class DescribeSlotsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Slots")
private java.util.List<Slots> slots;
private DescribeSlotsResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.slots = builder.slots;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSlotsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return slots
*/
public java.util.List<Slots> getSlots() {
return this.slots;
}
public static final class Builder {
private String requestId;
private java.util.List<Slots> slots;
private Builder() {
}
private Builder(DescribeSlotsResponseBody model) {
this.requestId = model.requestId;
this.slots = model.slots;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>76AF0609-4195-5DFC-BC78-3AD76FF872BB</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The information about the replication slot.</p>
*/
public Builder slots(java.util.List<Slots> slots) {
this.slots = slots;
return this;
}
public DescribeSlotsResponseBody build() {
return new DescribeSlotsResponseBody(this);
}
}
/**
*
* {@link DescribeSlotsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSlotsResponseBody</p>
*/
public static class Slots extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Database")
private String database;
@com.aliyun.core.annotation.NameInMap("Plugin")
private String plugin;
@com.aliyun.core.annotation.NameInMap("SlotName")
private String slotName;
@com.aliyun.core.annotation.NameInMap("SlotStatus")
private String slotStatus;
@com.aliyun.core.annotation.NameInMap("SlotType")
private String slotType;
@com.aliyun.core.annotation.NameInMap("SubReplayLag")
private String subReplayLag;
@com.aliyun.core.annotation.NameInMap("Temporary")
private String temporary;
@com.aliyun.core.annotation.NameInMap("WalDelay")
private String walDelay;
private Slots(Builder builder) {
this.database = builder.database;
this.plugin = builder.plugin;
this.slotName = builder.slotName;
this.slotStatus = builder.slotStatus;
this.slotType = builder.slotType;
this.subReplayLag = builder.subReplayLag;
this.temporary = builder.temporary;
this.walDelay = builder.walDelay;
}
public static Builder builder() {
return new Builder();
}
public static Slots create() {
return builder().build();
}
/**
* @return database
*/
public String getDatabase() {
return this.database;
}
/**
* @return plugin
*/
public String getPlugin() {
return this.plugin;
}
/**
* @return slotName
*/
public String getSlotName() {
return this.slotName;
}
/**
* @return slotStatus
*/
public String getSlotStatus() {
return this.slotStatus;
}
/**
* @return slotType
*/
public String getSlotType() {
return this.slotType;
}
/**
* @return subReplayLag
*/
public String getSubReplayLag() {
return this.subReplayLag;
}
/**
* @return temporary
*/
public String getTemporary() {
return this.temporary;
}
/**
* @return walDelay
*/
public String getWalDelay() {
return this.walDelay;
}
public static final class Builder {
private String database;
private String plugin;
private String slotName;
private String slotStatus;
private String slotType;
private String subReplayLag;
private String temporary;
private String walDelay;
private Builder() {
}
private Builder(Slots model) {
this.database = model.database;
this.plugin = model.plugin;
this.slotName = model.slotName;
this.slotStatus = model.slotStatus;
this.slotType = model.slotType;
this.subReplayLag = model.subReplayLag;
this.temporary = model.temporary;
this.walDelay = model.walDelay;
}
/**
* <p>The name of the database in which the replication slot resides.</p>
*
* <strong>example:</strong>
* <p>db_test01</p>
*/
public Builder database(String database) {
this.database = database;
return this;
}
/**
* <p>The extension used by the replication slot.</p>
*
* <strong>example:</strong>
* <p>test_decoding</p>
*/
public Builder plugin(String plugin) {
this.plugin = plugin;
return this;
}
/**
* <p>The replication slot name.</p>
*
* <strong>example:</strong>
* <p>slot_test01</p>
*/
public Builder slotName(String slotName) {
this.slotName = slotName;
return this;
}
/**
* <p>The replication slot status. Valid values:</p>
* <ul>
* <li>ACTIVE</li>
* <li>INACTIVE</li>
* </ul>
*
* <strong>example:</strong>
* <p>INACTIVE</p>
*/
public Builder slotStatus(String slotStatus) {
this.slotStatus = slotStatus;
return this;
}
/**
* <p>The replication slot type. Valid values:</p>
* <ul>
* <li>physical</li>
* <li>logical</li>
* </ul>
*
* <strong>example:</strong>
* <p>logical</p>
*/
public Builder slotType(String slotType) {
this.slotType = slotType;
return this;
}
/**
* <p>The latency of the logical subscription on the subscriber node that corresponds to the current replication slot. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder subReplayLag(String subReplayLag) {
this.subReplayLag = subReplayLag;
return this;
}
/**
* <p>Indicates whether the replication slot is a temporary replication slot. Valid values:</p>
* <ul>
* <li>true</li>
* <li>false</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
public Builder temporary(String temporary) {
this.temporary = temporary;
return this;
}
/**
* <p>The number of logs accumulated in the replication slot.</p>
*
* <strong>example:</strong>
* <p>16 MB</p>
*/
public Builder walDelay(String walDelay) {
this.walDelay = walDelay;
return this;
}
public Slots build() {
return new Slots(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSlowLogRecordsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSlowLogRecordsRequest} extends {@link RequestModel}
*
* <p>DescribeSlowLogRecordsRequest</p>
*/
public class DescribeSlowLogRecordsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
@com.aliyun.core.annotation.Validation(required = true)
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 2147483647, minimum = 1)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 30)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SQLHASH")
private String SQLHASH;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
@com.aliyun.core.annotation.Validation(required = true)
private String startTime;
private DescribeSlowLogRecordsRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.DBName = builder.DBName;
this.endTime = builder.endTime;
this.nodeId = builder.nodeId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.SQLHASH = builder.SQLHASH;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSlowLogRecordsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return SQLHASH
*/
public String getSQLHASH() {
return this.SQLHASH;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeSlowLogRecordsRequest, Builder> {
private String DBInstanceId;
private String DBName;
private String endTime;
private String nodeId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String SQLHASH;
private String startTime;
private Builder() {
super();
}
private Builder(DescribeSlowLogRecordsRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.DBName = request.DBName;
this.endTime = request.endTime;
this.nodeId = request.nodeId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.SQLHASH = request.SQLHASH;
this.startTime = request.startTime;
}
/**
* <p>The ID of the instance. You can call the <a href="https://help.aliyun.com/document_detail/610396.html">DescribeDBInstances</a> operation to query the ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5******</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The name of the database.</p>
*
* <strong>example:</strong>
* <p>RDS_MySQL</p>
*/
public Builder DBName(String DBName) {
this.putQueryParameter("DBName", DBName);
this.DBName = DBName;
return this;
}
/**
* <p>The end of the time range to query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-ddTHH:mm:ssZ</em> format. The time must be in UTC.**</p>
* <blockquote>
* <p>The end time must be later than the start time.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2020-06-18T16:00Z</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* <p>The ID of the node.</p>
* <blockquote>
* <p>This parameter is available only for instances that run RDS Cluster Edition. You can specify this parameter to query the logs of a specified node. If this parameter is not specified, the logs of the primary node are returned by default.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>rn-p1fm78s90x5****</p>
*/
public Builder nodeId(String nodeId) {
this.putQueryParameter("NodeId", nodeId);
this.nodeId = nodeId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Pages start from page 1. Default value: 1.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid value: <strong>30 to 200</strong>. Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The unique ID of the SQL statement. The ID is used to obtain the slow query logs of the SQL statement.</p>
*
* <strong>example:</strong>
* <p>U2FsdGVk****</p>
*/
public Builder SQLHASH(String SQLHASH) {
this.putQueryParameter("SQLHASH", SQLHASH);
this.SQLHASH = SQLHASH;
return this;
}
/**
* <p>The beginning of the time range to query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time must be in UTC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2020-06-17T16:00Z</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeSlowLogRecordsRequest build() {
return new DescribeSlowLogRecordsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSlowLogRecordsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSlowLogRecordsResponse} extends {@link TeaModel}
*
* <p>DescribeSlowLogRecordsResponse</p>
*/
public class DescribeSlowLogRecordsResponse 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 DescribeSlowLogRecordsResponseBody body;
private DescribeSlowLogRecordsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSlowLogRecordsResponse 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 DescribeSlowLogRecordsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSlowLogRecordsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSlowLogRecordsResponseBody body);
@Override
DescribeSlowLogRecordsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSlowLogRecordsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSlowLogRecordsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSlowLogRecordsResponse 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(DescribeSlowLogRecordsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSlowLogRecordsResponse build() {
return new DescribeSlowLogRecordsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSlowLogRecordsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSlowLogRecordsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSlowLogRecordsResponseBody</p>
*/
public class DescribeSlowLogRecordsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeSlowLogRecordsResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.engine = builder.engine;
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSlowLogRecordsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private String DBInstanceId;
private String engine;
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeSlowLogRecordsResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.engine = model.engine;
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*******</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The type of the database engine.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.engine = engine;
return this;
}
/**
* <p>An array that consists of the information about each slow log.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of SQL log reports on the current page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>4DBB1BB0-E5D8-4D41-B1C9-142364DB****</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeSlowLogRecordsResponseBody build() {
return new DescribeSlowLogRecordsResponseBody(this);
}
}
/**
*
* {@link DescribeSlowLogRecordsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSlowLogRecordsResponseBody</p>
*/
public static class SQLSlowRecord extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ApplicationName")
private String applicationName;
@com.aliyun.core.annotation.NameInMap("ClientHostName")
private String clientHostName;
@com.aliyun.core.annotation.NameInMap("CpuTime")
private Long cpuTime;
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.NameInMap("ExecutionStartTime")
private String executionStartTime;
@com.aliyun.core.annotation.NameInMap("HostAddress")
private String hostAddress;
@com.aliyun.core.annotation.NameInMap("LastRowsAffectedCount")
private Long lastRowsAffectedCount;
@com.aliyun.core.annotation.NameInMap("LockTimes")
private Long lockTimes;
@com.aliyun.core.annotation.NameInMap("LogicalIORead")
private Long logicalIORead;
@com.aliyun.core.annotation.NameInMap("ParseRowCounts")
private Long parseRowCounts;
@com.aliyun.core.annotation.NameInMap("PhysicalIORead")
private Long physicalIORead;
@com.aliyun.core.annotation.NameInMap("QueryTimeMS")
private Long queryTimeMS;
@com.aliyun.core.annotation.NameInMap("QueryTimes")
private Long queryTimes;
@com.aliyun.core.annotation.NameInMap("ReturnRowCounts")
private Long returnRowCounts;
@com.aliyun.core.annotation.NameInMap("RowsAffectedCount")
private Long rowsAffectedCount;
@com.aliyun.core.annotation.NameInMap("SQLHash")
private String SQLHash;
@com.aliyun.core.annotation.NameInMap("SQLText")
private String SQLText;
@com.aliyun.core.annotation.NameInMap("UserName")
private String userName;
@com.aliyun.core.annotation.NameInMap("WriteIOCount")
private Long writeIOCount;
private SQLSlowRecord(Builder builder) {
this.applicationName = builder.applicationName;
this.clientHostName = builder.clientHostName;
this.cpuTime = builder.cpuTime;
this.DBName = builder.DBName;
this.executionStartTime = builder.executionStartTime;
this.hostAddress = builder.hostAddress;
this.lastRowsAffectedCount = builder.lastRowsAffectedCount;
this.lockTimes = builder.lockTimes;
this.logicalIORead = builder.logicalIORead;
this.parseRowCounts = builder.parseRowCounts;
this.physicalIORead = builder.physicalIORead;
this.queryTimeMS = builder.queryTimeMS;
this.queryTimes = builder.queryTimes;
this.returnRowCounts = builder.returnRowCounts;
this.rowsAffectedCount = builder.rowsAffectedCount;
this.SQLHash = builder.SQLHash;
this.SQLText = builder.SQLText;
this.userName = builder.userName;
this.writeIOCount = builder.writeIOCount;
}
public static Builder builder() {
return new Builder();
}
public static SQLSlowRecord create() {
return builder().build();
}
/**
* @return applicationName
*/
public String getApplicationName() {
return this.applicationName;
}
/**
* @return clientHostName
*/
public String getClientHostName() {
return this.clientHostName;
}
/**
* @return cpuTime
*/
public Long getCpuTime() {
return this.cpuTime;
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return executionStartTime
*/
public String getExecutionStartTime() {
return this.executionStartTime;
}
/**
* @return hostAddress
*/
public String getHostAddress() {
return this.hostAddress;
}
/**
* @return lastRowsAffectedCount
*/
public Long getLastRowsAffectedCount() {
return this.lastRowsAffectedCount;
}
/**
* @return lockTimes
*/
public Long getLockTimes() {
return this.lockTimes;
}
/**
* @return logicalIORead
*/
public Long getLogicalIORead() {
return this.logicalIORead;
}
/**
* @return parseRowCounts
*/
public Long getParseRowCounts() {
return this.parseRowCounts;
}
/**
* @return physicalIORead
*/
public Long getPhysicalIORead() {
return this.physicalIORead;
}
/**
* @return queryTimeMS
*/
public Long getQueryTimeMS() {
return this.queryTimeMS;
}
/**
* @return queryTimes
*/
public Long getQueryTimes() {
return this.queryTimes;
}
/**
* @return returnRowCounts
*/
public Long getReturnRowCounts() {
return this.returnRowCounts;
}
/**
* @return rowsAffectedCount
*/
public Long getRowsAffectedCount() {
return this.rowsAffectedCount;
}
/**
* @return SQLHash
*/
public String getSQLHash() {
return this.SQLHash;
}
/**
* @return SQLText
*/
public String getSQLText() {
return this.SQLText;
}
/**
* @return userName
*/
public String getUserName() {
return this.userName;
}
/**
* @return writeIOCount
*/
public Long getWriteIOCount() {
return this.writeIOCount;
}
public static final class Builder {
private String applicationName;
private String clientHostName;
private Long cpuTime;
private String DBName;
private String executionStartTime;
private String hostAddress;
private Long lastRowsAffectedCount;
private Long lockTimes;
private Long logicalIORead;
private Long parseRowCounts;
private Long physicalIORead;
private Long queryTimeMS;
private Long queryTimes;
private Long returnRowCounts;
private Long rowsAffectedCount;
private String SQLHash;
private String SQLText;
private String userName;
private Long writeIOCount;
private Builder() {
}
private Builder(SQLSlowRecord model) {
this.applicationName = model.applicationName;
this.clientHostName = model.clientHostName;
this.cpuTime = model.cpuTime;
this.DBName = model.DBName;
this.executionStartTime = model.executionStartTime;
this.hostAddress = model.hostAddress;
this.lastRowsAffectedCount = model.lastRowsAffectedCount;
this.lockTimes = model.lockTimes;
this.logicalIORead = model.logicalIORead;
this.parseRowCounts = model.parseRowCounts;
this.physicalIORead = model.physicalIORead;
this.queryTimeMS = model.queryTimeMS;
this.queryTimes = model.queryTimes;
this.returnRowCounts = model.returnRowCounts;
this.rowsAffectedCount = model.rowsAffectedCount;
this.SQLHash = model.SQLHash;
this.SQLText = model.SQLText;
this.userName = model.userName;
this.writeIOCount = model.writeIOCount;
}
/**
* <p>The name of the application that is connected to the instance.</p>
* <blockquote>
* <p>This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>example</p>
*/
public Builder applicationName(String applicationName) {
this.applicationName = applicationName;
return this;
}
/**
* <p>The hostname of the client.</p>
* <blockquote>
* <p>This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>example</p>
*/
public Builder clientHostName(String clientHostName) {
this.clientHostName = clientHostName;
return this;
}
/**
* <p>The duration during which the SQL statement is processed by the CPU. Unit: milliseconds.</p>
* <blockquote>
* <p>This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0.002</p>
*/
public Builder cpuTime(Long cpuTime) {
this.cpuTime = cpuTime;
return this;
}
/**
* <p>The name of the database.</p>
*
* <strong>example:</strong>
* <p>testDB</p>
*/
public Builder DBName(String DBName) {
this.DBName = DBName;
return this;
}
/**
* <p>The time when the execution of the SQL statement started. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm:ss</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2020-06-18T01:40:44Z</p>
*/
public Builder executionStartTime(String executionStartTime) {
this.executionStartTime = executionStartTime;
return this;
}
/**
* <p>The name and IP address of the client that is connected to the database.</p>
*
* <strong>example:</strong>
* <p>xxx[xxx] @ [1xx.xxx.xxx.xx]</p>
*/
public Builder hostAddress(String hostAddress) {
this.hostAddress = hostAddress;
return this;
}
/**
* <p>The number of rows that are affected by the last SQL statement.</p>
* <blockquote>
* <p>This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder lastRowsAffectedCount(Long lastRowsAffectedCount) {
this.lastRowsAffectedCount = lastRowsAffectedCount;
return this;
}
/**
* <p>The lock duration of the query. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder lockTimes(Long lockTimes) {
this.lockTimes = lockTimes;
return this;
}
/**
* <p>The number of logical reads.</p>
* <blockquote>
* <p>This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>383</p>
*/
public Builder logicalIORead(Long logicalIORead) {
this.logicalIORead = logicalIORead;
return this;
}
/**
* <p>The number of parsed rows.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder parseRowCounts(Long parseRowCounts) {
this.parseRowCounts = parseRowCounts;
return this;
}
/**
* <p>The number of physical reads.</p>
* <blockquote>
* <p>This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder physicalIORead(Long physicalIORead) {
this.physicalIORead = physicalIORead;
return this;
}
/**
* <p>The execution duration of the query. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>2001</p>
*/
public Builder queryTimeMS(Long queryTimeMS) {
this.queryTimeMS = queryTimeMS;
return this;
}
/**
* <p>The execution duration of the query. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder queryTimes(Long queryTimes) {
this.queryTimes = queryTimes;
return this;
}
/**
* <p>The number of rows returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder returnRowCounts(Long returnRowCounts) {
this.returnRowCounts = returnRowCounts;
return this;
}
/**
* <p>The number of affected rows.</p>
* <blockquote>
* <p>This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>34</p>
*/
public Builder rowsAffectedCount(Long rowsAffectedCount) {
this.rowsAffectedCount = rowsAffectedCount;
return this;
}
/**
* <p>The unique ID of the SQL statement.</p>
*
* <strong>example:</strong>
* <p>U2FsdGVk****</p>
*/
public Builder SQLHash(String SQLHash) {
this.SQLHash = SQLHash;
return this;
}
/**
* <p>The details of the SQL statement.</p>
*
* <strong>example:</strong>
* <p>select sleep(2)</p>
*/
public Builder SQLText(String SQLText) {
this.SQLText = SQLText;
return this;
}
/**
* <p>The name of the user.</p>
* <blockquote>
* <p>This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>user</p>
*/
public Builder userName(String userName) {
this.userName = userName;
return this;
}
/**
* <p>The number of I/O writes.</p>
* <blockquote>
* <p>This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>22</p>
*/
public Builder writeIOCount(Long writeIOCount) {
this.writeIOCount = writeIOCount;
return this;
}
public SQLSlowRecord build() {
return new SQLSlowRecord(this);
}
}
}
/**
*
* {@link DescribeSlowLogRecordsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSlowLogRecordsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SQLSlowRecord")
private java.util.List<SQLSlowRecord> SQLSlowRecord;
private Items(Builder builder) {
this.SQLSlowRecord = builder.SQLSlowRecord;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return SQLSlowRecord
*/
public java.util.List<SQLSlowRecord> getSQLSlowRecord() {
return this.SQLSlowRecord;
}
public static final class Builder {
private java.util.List<SQLSlowRecord> SQLSlowRecord;
private Builder() {
}
private Builder(Items model) {
this.SQLSlowRecord = model.SQLSlowRecord;
}
/**
* SQLSlowRecord.
*/
public Builder SQLSlowRecord(java.util.List<SQLSlowRecord> SQLSlowRecord) {
this.SQLSlowRecord = SQLSlowRecord;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSlowLogsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSlowLogsRequest} extends {@link RequestModel}
*
* <p>DescribeSlowLogsRequest</p>
*/
public class DescribeSlowLogsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
@com.aliyun.core.annotation.Validation(required = true)
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 65535, minimum = 1)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 30)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SortKey")
private String sortKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
@com.aliyun.core.annotation.Validation(required = true)
private String startTime;
private DescribeSlowLogsRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.DBName = builder.DBName;
this.endTime = builder.endTime;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.sortKey = builder.sortKey;
this.startTime = builder.startTime;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSlowLogsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return sortKey
*/
public String getSortKey() {
return this.sortKey;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
public static final class Builder extends Request.Builder<DescribeSlowLogsRequest, Builder> {
private String DBInstanceId;
private String DBName;
private String endTime;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String sortKey;
private String startTime;
private Builder() {
super();
}
private Builder(DescribeSlowLogsRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.DBName = request.DBName;
this.endTime = request.endTime;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.sortKey = request.sortKey;
this.startTime = request.startTime;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The name of the database.</p>
*
* <strong>example:</strong>
* <p>RDS_MySQL</p>
*/
public Builder DBName(String DBName) {
this.putQueryParameter("DBName", DBName);
this.DBName = DBName;
return this;
}
/**
* <p>The end of the time range to query. The end time must be later than the start time. The time span between the start time and the end time cannot exceed 31 days. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>Z format. The time must be in UTC.</p>
* <blockquote>
* <p> If the end date of the query is the same as the start date of the query, you can query the logs that are generated at 08:00 on the start date of the query. You can query the slow logs within a maximum time range of 24 hours.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2011-05-30Z</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Pages start from 1.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page. Valid values: <strong>30</strong> to <strong>100</strong>. Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The dimension based on which the system sorts the entries to return. Valid values:</p>
* <ul>
* <li><strong>TotalExecutionCounts</strong>: The system sorts the entries to return based on the number of times that SQL statements are executed.</li>
* <li><strong>TotalQueryTimes</strong>: The system sorts the entries to return based on the total execution duration.</li>
* <li><strong>TotalLogicalReads</strong>: The system sorts the entries to return based on the total number of logical reads.</li>
* <li><strong>TotalPhysicalReads</strong>: The system sorts the entries to return based on the total number of physical reads.</li>
* </ul>
* <blockquote>
* <p>This parameter is supported only for instances that run SQL Server 2008 R2.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>TotalExecutionCounts</p>
*/
public Builder sortKey(String sortKey) {
this.putQueryParameter("SortKey", sortKey);
this.sortKey = sortKey;
return this;
}
/**
* <p>The beginning of the time range to query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>Z format. The time must be in UTC.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>2011-05-01Z</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
@Override
public DescribeSlowLogsRequest build() {
return new DescribeSlowLogsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSlowLogsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSlowLogsResponse} extends {@link TeaModel}
*
* <p>DescribeSlowLogsResponse</p>
*/
public class DescribeSlowLogsResponse 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 DescribeSlowLogsResponseBody body;
private DescribeSlowLogsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSlowLogsResponse 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 DescribeSlowLogsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSlowLogsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSlowLogsResponseBody body);
@Override
DescribeSlowLogsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSlowLogsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSlowLogsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSlowLogsResponse 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(DescribeSlowLogsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSlowLogsResponse build() {
return new DescribeSlowLogsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSlowLogsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSlowLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSlowLogsResponseBody</p>
*/
public class DescribeSlowLogsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.NameInMap("Engine")
private String engine;
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeSlowLogsResponseBody(Builder builder) {
this.DBInstanceId = builder.DBInstanceId;
this.endTime = builder.endTime;
this.engine = builder.engine;
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.startTime = builder.startTime;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSlowLogsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private String DBInstanceId;
private String endTime;
private String engine;
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private String startTime;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeSlowLogsResponseBody model) {
this.DBInstanceId = model.DBInstanceId;
this.endTime = model.endTime;
this.engine = model.engine;
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.startTime = model.startTime;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The end date of the query.</p>
*
* <strong>example:</strong>
* <p>2011-05-30Z</p>
*/
public Builder endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The database engine of the instance.</p>
*
* <strong>example:</strong>
* <p>MySQL</p>
*/
public Builder engine(String engine) {
this.engine = engine;
return this;
}
/**
* <p>An array that consists of the information about each slow query log.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The number of the page returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of SQL statements that are returned on the current page.</p>
*
* <strong>example:</strong>
* <p>10</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>2553A660-E4EB-4AF4-A402-8AFF70A49143</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The start date of the query.</p>
*
* <strong>example:</strong>
* <p>2011-05-30Z</p>
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The total number of entries that are returned.</p>
*
* <strong>example:</strong>
* <p>5</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeSlowLogsResponseBody build() {
return new DescribeSlowLogsResponseBody(this);
}
}
/**
*
* {@link DescribeSlowLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSlowLogsResponseBody</p>
*/
public static class SQLSlowLog extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AvgExecutionTime")
private Long avgExecutionTime;
@com.aliyun.core.annotation.NameInMap("AvgIOWriteCounts")
private Long avgIOWriteCounts;
@com.aliyun.core.annotation.NameInMap("AvgLastRowsAffectedCounts")
private Long avgLastRowsAffectedCounts;
@com.aliyun.core.annotation.NameInMap("AvgLogicalReadCounts")
private Long avgLogicalReadCounts;
@com.aliyun.core.annotation.NameInMap("AvgPhysicalReadCounts")
private Long avgPhysicalReadCounts;
@com.aliyun.core.annotation.NameInMap("AvgRowsAffectedCounts")
private Long avgRowsAffectedCounts;
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.NameInMap("MaxExecutionTime")
private Long maxExecutionTime;
@com.aliyun.core.annotation.NameInMap("MaxExecutionTimeMS")
private Long maxExecutionTimeMS;
@com.aliyun.core.annotation.NameInMap("MaxIOWriteCounts")
private Long maxIOWriteCounts;
@com.aliyun.core.annotation.NameInMap("MaxLastRowsAffectedCounts")
private Long maxLastRowsAffectedCounts;
@com.aliyun.core.annotation.NameInMap("MaxLockTime")
private Long maxLockTime;
@com.aliyun.core.annotation.NameInMap("MaxLockTimeMS")
private Long maxLockTimeMS;
@com.aliyun.core.annotation.NameInMap("MaxLogicalReadCounts")
private Long maxLogicalReadCounts;
@com.aliyun.core.annotation.NameInMap("MaxPhysicalReadCounts")
private Long maxPhysicalReadCounts;
@com.aliyun.core.annotation.NameInMap("MaxRowsAffectedCounts")
private Long maxRowsAffectedCounts;
@com.aliyun.core.annotation.NameInMap("MinIOWriteCounts")
private Long minIOWriteCounts;
@com.aliyun.core.annotation.NameInMap("MinLastRowsAffectedCounts")
private Long minLastRowsAffectedCounts;
@com.aliyun.core.annotation.NameInMap("MinLogicalReadCounts")
private Long minLogicalReadCounts;
@com.aliyun.core.annotation.NameInMap("MinPhysicalReadCounts")
private Long minPhysicalReadCounts;
@com.aliyun.core.annotation.NameInMap("MinRowsAffectedCounts")
private Long minRowsAffectedCounts;
@com.aliyun.core.annotation.NameInMap("MySQLTotalExecutionCounts")
private Long mySQLTotalExecutionCounts;
@com.aliyun.core.annotation.NameInMap("MySQLTotalExecutionTimes")
private Long mySQLTotalExecutionTimes;
@com.aliyun.core.annotation.NameInMap("ParseMaxRowCount")
private Long parseMaxRowCount;
@com.aliyun.core.annotation.NameInMap("ParseTotalRowCounts")
private Long parseTotalRowCounts;
@com.aliyun.core.annotation.NameInMap("ReportTime")
private String reportTime;
@com.aliyun.core.annotation.NameInMap("ReturnMaxRowCount")
private Long returnMaxRowCount;
@com.aliyun.core.annotation.NameInMap("ReturnTotalRowCounts")
private Long returnTotalRowCounts;
@com.aliyun.core.annotation.NameInMap("SQLHASH")
private String SQLHASH;
@com.aliyun.core.annotation.NameInMap("SQLIdStr")
private String SQLIdStr;
@com.aliyun.core.annotation.NameInMap("SQLServerAvgCpuTime")
private Long SQLServerAvgCpuTime;
@com.aliyun.core.annotation.NameInMap("SQLServerAvgExecutionTime")
private Long SQLServerAvgExecutionTime;
@com.aliyun.core.annotation.NameInMap("SQLServerMaxCpuTime")
private Long SQLServerMaxCpuTime;
@com.aliyun.core.annotation.NameInMap("SQLServerMinCpuTime")
private Long SQLServerMinCpuTime;
@com.aliyun.core.annotation.NameInMap("SQLServerMinExecutionTime")
private Long SQLServerMinExecutionTime;
@com.aliyun.core.annotation.NameInMap("SQLServerTotalCpuTime")
private Long SQLServerTotalCpuTime;
@com.aliyun.core.annotation.NameInMap("SQLServerTotalExecutionCounts")
private Long SQLServerTotalExecutionCounts;
@com.aliyun.core.annotation.NameInMap("SQLServerTotalExecutionTimes")
private Long SQLServerTotalExecutionTimes;
@com.aliyun.core.annotation.NameInMap("SQLText")
private String SQLText;
@com.aliyun.core.annotation.NameInMap("SlowLogId")
private Long slowLogId;
@com.aliyun.core.annotation.NameInMap("TotalIOWriteCounts")
private Long totalIOWriteCounts;
@com.aliyun.core.annotation.NameInMap("TotalLastRowsAffectedCounts")
private Long totalLastRowsAffectedCounts;
@com.aliyun.core.annotation.NameInMap("TotalLockTimes")
private Long totalLockTimes;
@com.aliyun.core.annotation.NameInMap("TotalLogicalReadCounts")
private Long totalLogicalReadCounts;
@com.aliyun.core.annotation.NameInMap("TotalPhysicalReadCounts")
private Long totalPhysicalReadCounts;
@com.aliyun.core.annotation.NameInMap("TotalRowsAffectedCounts")
private Long totalRowsAffectedCounts;
private SQLSlowLog(Builder builder) {
this.avgExecutionTime = builder.avgExecutionTime;
this.avgIOWriteCounts = builder.avgIOWriteCounts;
this.avgLastRowsAffectedCounts = builder.avgLastRowsAffectedCounts;
this.avgLogicalReadCounts = builder.avgLogicalReadCounts;
this.avgPhysicalReadCounts = builder.avgPhysicalReadCounts;
this.avgRowsAffectedCounts = builder.avgRowsAffectedCounts;
this.createTime = builder.createTime;
this.DBName = builder.DBName;
this.maxExecutionTime = builder.maxExecutionTime;
this.maxExecutionTimeMS = builder.maxExecutionTimeMS;
this.maxIOWriteCounts = builder.maxIOWriteCounts;
this.maxLastRowsAffectedCounts = builder.maxLastRowsAffectedCounts;
this.maxLockTime = builder.maxLockTime;
this.maxLockTimeMS = builder.maxLockTimeMS;
this.maxLogicalReadCounts = builder.maxLogicalReadCounts;
this.maxPhysicalReadCounts = builder.maxPhysicalReadCounts;
this.maxRowsAffectedCounts = builder.maxRowsAffectedCounts;
this.minIOWriteCounts = builder.minIOWriteCounts;
this.minLastRowsAffectedCounts = builder.minLastRowsAffectedCounts;
this.minLogicalReadCounts = builder.minLogicalReadCounts;
this.minPhysicalReadCounts = builder.minPhysicalReadCounts;
this.minRowsAffectedCounts = builder.minRowsAffectedCounts;
this.mySQLTotalExecutionCounts = builder.mySQLTotalExecutionCounts;
this.mySQLTotalExecutionTimes = builder.mySQLTotalExecutionTimes;
this.parseMaxRowCount = builder.parseMaxRowCount;
this.parseTotalRowCounts = builder.parseTotalRowCounts;
this.reportTime = builder.reportTime;
this.returnMaxRowCount = builder.returnMaxRowCount;
this.returnTotalRowCounts = builder.returnTotalRowCounts;
this.SQLHASH = builder.SQLHASH;
this.SQLIdStr = builder.SQLIdStr;
this.SQLServerAvgCpuTime = builder.SQLServerAvgCpuTime;
this.SQLServerAvgExecutionTime = builder.SQLServerAvgExecutionTime;
this.SQLServerMaxCpuTime = builder.SQLServerMaxCpuTime;
this.SQLServerMinCpuTime = builder.SQLServerMinCpuTime;
this.SQLServerMinExecutionTime = builder.SQLServerMinExecutionTime;
this.SQLServerTotalCpuTime = builder.SQLServerTotalCpuTime;
this.SQLServerTotalExecutionCounts = builder.SQLServerTotalExecutionCounts;
this.SQLServerTotalExecutionTimes = builder.SQLServerTotalExecutionTimes;
this.SQLText = builder.SQLText;
this.slowLogId = builder.slowLogId;
this.totalIOWriteCounts = builder.totalIOWriteCounts;
this.totalLastRowsAffectedCounts = builder.totalLastRowsAffectedCounts;
this.totalLockTimes = builder.totalLockTimes;
this.totalLogicalReadCounts = builder.totalLogicalReadCounts;
this.totalPhysicalReadCounts = builder.totalPhysicalReadCounts;
this.totalRowsAffectedCounts = builder.totalRowsAffectedCounts;
}
public static Builder builder() {
return new Builder();
}
public static SQLSlowLog create() {
return builder().build();
}
/**
* @return avgExecutionTime
*/
public Long getAvgExecutionTime() {
return this.avgExecutionTime;
}
/**
* @return avgIOWriteCounts
*/
public Long getAvgIOWriteCounts() {
return this.avgIOWriteCounts;
}
/**
* @return avgLastRowsAffectedCounts
*/
public Long getAvgLastRowsAffectedCounts() {
return this.avgLastRowsAffectedCounts;
}
/**
* @return avgLogicalReadCounts
*/
public Long getAvgLogicalReadCounts() {
return this.avgLogicalReadCounts;
}
/**
* @return avgPhysicalReadCounts
*/
public Long getAvgPhysicalReadCounts() {
return this.avgPhysicalReadCounts;
}
/**
* @return avgRowsAffectedCounts
*/
public Long getAvgRowsAffectedCounts() {
return this.avgRowsAffectedCounts;
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return maxExecutionTime
*/
public Long getMaxExecutionTime() {
return this.maxExecutionTime;
}
/**
* @return maxExecutionTimeMS
*/
public Long getMaxExecutionTimeMS() {
return this.maxExecutionTimeMS;
}
/**
* @return maxIOWriteCounts
*/
public Long getMaxIOWriteCounts() {
return this.maxIOWriteCounts;
}
/**
* @return maxLastRowsAffectedCounts
*/
public Long getMaxLastRowsAffectedCounts() {
return this.maxLastRowsAffectedCounts;
}
/**
* @return maxLockTime
*/
public Long getMaxLockTime() {
return this.maxLockTime;
}
/**
* @return maxLockTimeMS
*/
public Long getMaxLockTimeMS() {
return this.maxLockTimeMS;
}
/**
* @return maxLogicalReadCounts
*/
public Long getMaxLogicalReadCounts() {
return this.maxLogicalReadCounts;
}
/**
* @return maxPhysicalReadCounts
*/
public Long getMaxPhysicalReadCounts() {
return this.maxPhysicalReadCounts;
}
/**
* @return maxRowsAffectedCounts
*/
public Long getMaxRowsAffectedCounts() {
return this.maxRowsAffectedCounts;
}
/**
* @return minIOWriteCounts
*/
public Long getMinIOWriteCounts() {
return this.minIOWriteCounts;
}
/**
* @return minLastRowsAffectedCounts
*/
public Long getMinLastRowsAffectedCounts() {
return this.minLastRowsAffectedCounts;
}
/**
* @return minLogicalReadCounts
*/
public Long getMinLogicalReadCounts() {
return this.minLogicalReadCounts;
}
/**
* @return minPhysicalReadCounts
*/
public Long getMinPhysicalReadCounts() {
return this.minPhysicalReadCounts;
}
/**
* @return minRowsAffectedCounts
*/
public Long getMinRowsAffectedCounts() {
return this.minRowsAffectedCounts;
}
/**
* @return mySQLTotalExecutionCounts
*/
public Long getMySQLTotalExecutionCounts() {
return this.mySQLTotalExecutionCounts;
}
/**
* @return mySQLTotalExecutionTimes
*/
public Long getMySQLTotalExecutionTimes() {
return this.mySQLTotalExecutionTimes;
}
/**
* @return parseMaxRowCount
*/
public Long getParseMaxRowCount() {
return this.parseMaxRowCount;
}
/**
* @return parseTotalRowCounts
*/
public Long getParseTotalRowCounts() {
return this.parseTotalRowCounts;
}
/**
* @return reportTime
*/
public String getReportTime() {
return this.reportTime;
}
/**
* @return returnMaxRowCount
*/
public Long getReturnMaxRowCount() {
return this.returnMaxRowCount;
}
/**
* @return returnTotalRowCounts
*/
public Long getReturnTotalRowCounts() {
return this.returnTotalRowCounts;
}
/**
* @return SQLHASH
*/
public String getSQLHASH() {
return this.SQLHASH;
}
/**
* @return SQLIdStr
*/
public String getSQLIdStr() {
return this.SQLIdStr;
}
/**
* @return SQLServerAvgCpuTime
*/
public Long getSQLServerAvgCpuTime() {
return this.SQLServerAvgCpuTime;
}
/**
* @return SQLServerAvgExecutionTime
*/
public Long getSQLServerAvgExecutionTime() {
return this.SQLServerAvgExecutionTime;
}
/**
* @return SQLServerMaxCpuTime
*/
public Long getSQLServerMaxCpuTime() {
return this.SQLServerMaxCpuTime;
}
/**
* @return SQLServerMinCpuTime
*/
public Long getSQLServerMinCpuTime() {
return this.SQLServerMinCpuTime;
}
/**
* @return SQLServerMinExecutionTime
*/
public Long getSQLServerMinExecutionTime() {
return this.SQLServerMinExecutionTime;
}
/**
* @return SQLServerTotalCpuTime
*/
public Long getSQLServerTotalCpuTime() {
return this.SQLServerTotalCpuTime;
}
/**
* @return SQLServerTotalExecutionCounts
*/
public Long getSQLServerTotalExecutionCounts() {
return this.SQLServerTotalExecutionCounts;
}
/**
* @return SQLServerTotalExecutionTimes
*/
public Long getSQLServerTotalExecutionTimes() {
return this.SQLServerTotalExecutionTimes;
}
/**
* @return SQLText
*/
public String getSQLText() {
return this.SQLText;
}
/**
* @return slowLogId
*/
public Long getSlowLogId() {
return this.slowLogId;
}
/**
* @return totalIOWriteCounts
*/
public Long getTotalIOWriteCounts() {
return this.totalIOWriteCounts;
}
/**
* @return totalLastRowsAffectedCounts
*/
public Long getTotalLastRowsAffectedCounts() {
return this.totalLastRowsAffectedCounts;
}
/**
* @return totalLockTimes
*/
public Long getTotalLockTimes() {
return this.totalLockTimes;
}
/**
* @return totalLogicalReadCounts
*/
public Long getTotalLogicalReadCounts() {
return this.totalLogicalReadCounts;
}
/**
* @return totalPhysicalReadCounts
*/
public Long getTotalPhysicalReadCounts() {
return this.totalPhysicalReadCounts;
}
/**
* @return totalRowsAffectedCounts
*/
public Long getTotalRowsAffectedCounts() {
return this.totalRowsAffectedCounts;
}
public static final class Builder {
private Long avgExecutionTime;
private Long avgIOWriteCounts;
private Long avgLastRowsAffectedCounts;
private Long avgLogicalReadCounts;
private Long avgPhysicalReadCounts;
private Long avgRowsAffectedCounts;
private String createTime;
private String DBName;
private Long maxExecutionTime;
private Long maxExecutionTimeMS;
private Long maxIOWriteCounts;
private Long maxLastRowsAffectedCounts;
private Long maxLockTime;
private Long maxLockTimeMS;
private Long maxLogicalReadCounts;
private Long maxPhysicalReadCounts;
private Long maxRowsAffectedCounts;
private Long minIOWriteCounts;
private Long minLastRowsAffectedCounts;
private Long minLogicalReadCounts;
private Long minPhysicalReadCounts;
private Long minRowsAffectedCounts;
private Long mySQLTotalExecutionCounts;
private Long mySQLTotalExecutionTimes;
private Long parseMaxRowCount;
private Long parseTotalRowCounts;
private String reportTime;
private Long returnMaxRowCount;
private Long returnTotalRowCounts;
private String SQLHASH;
private String SQLIdStr;
private Long SQLServerAvgCpuTime;
private Long SQLServerAvgExecutionTime;
private Long SQLServerMaxCpuTime;
private Long SQLServerMinCpuTime;
private Long SQLServerMinExecutionTime;
private Long SQLServerTotalCpuTime;
private Long SQLServerTotalExecutionCounts;
private Long SQLServerTotalExecutionTimes;
private String SQLText;
private Long slowLogId;
private Long totalIOWriteCounts;
private Long totalLastRowsAffectedCounts;
private Long totalLockTimes;
private Long totalLogicalReadCounts;
private Long totalPhysicalReadCounts;
private Long totalRowsAffectedCounts;
private Builder() {
}
private Builder(SQLSlowLog model) {
this.avgExecutionTime = model.avgExecutionTime;
this.avgIOWriteCounts = model.avgIOWriteCounts;
this.avgLastRowsAffectedCounts = model.avgLastRowsAffectedCounts;
this.avgLogicalReadCounts = model.avgLogicalReadCounts;
this.avgPhysicalReadCounts = model.avgPhysicalReadCounts;
this.avgRowsAffectedCounts = model.avgRowsAffectedCounts;
this.createTime = model.createTime;
this.DBName = model.DBName;
this.maxExecutionTime = model.maxExecutionTime;
this.maxExecutionTimeMS = model.maxExecutionTimeMS;
this.maxIOWriteCounts = model.maxIOWriteCounts;
this.maxLastRowsAffectedCounts = model.maxLastRowsAffectedCounts;
this.maxLockTime = model.maxLockTime;
this.maxLockTimeMS = model.maxLockTimeMS;
this.maxLogicalReadCounts = model.maxLogicalReadCounts;
this.maxPhysicalReadCounts = model.maxPhysicalReadCounts;
this.maxRowsAffectedCounts = model.maxRowsAffectedCounts;
this.minIOWriteCounts = model.minIOWriteCounts;
this.minLastRowsAffectedCounts = model.minLastRowsAffectedCounts;
this.minLogicalReadCounts = model.minLogicalReadCounts;
this.minPhysicalReadCounts = model.minPhysicalReadCounts;
this.minRowsAffectedCounts = model.minRowsAffectedCounts;
this.mySQLTotalExecutionCounts = model.mySQLTotalExecutionCounts;
this.mySQLTotalExecutionTimes = model.mySQLTotalExecutionTimes;
this.parseMaxRowCount = model.parseMaxRowCount;
this.parseTotalRowCounts = model.parseTotalRowCounts;
this.reportTime = model.reportTime;
this.returnMaxRowCount = model.returnMaxRowCount;
this.returnTotalRowCounts = model.returnTotalRowCounts;
this.SQLHASH = model.SQLHASH;
this.SQLIdStr = model.SQLIdStr;
this.SQLServerAvgCpuTime = model.SQLServerAvgCpuTime;
this.SQLServerAvgExecutionTime = model.SQLServerAvgExecutionTime;
this.SQLServerMaxCpuTime = model.SQLServerMaxCpuTime;
this.SQLServerMinCpuTime = model.SQLServerMinCpuTime;
this.SQLServerMinExecutionTime = model.SQLServerMinExecutionTime;
this.SQLServerTotalCpuTime = model.SQLServerTotalCpuTime;
this.SQLServerTotalExecutionCounts = model.SQLServerTotalExecutionCounts;
this.SQLServerTotalExecutionTimes = model.SQLServerTotalExecutionTimes;
this.SQLText = model.SQLText;
this.slowLogId = model.slowLogId;
this.totalIOWriteCounts = model.totalIOWriteCounts;
this.totalLastRowsAffectedCounts = model.totalLastRowsAffectedCounts;
this.totalLockTimes = model.totalLockTimes;
this.totalLogicalReadCounts = model.totalLogicalReadCounts;
this.totalPhysicalReadCounts = model.totalPhysicalReadCounts;
this.totalRowsAffectedCounts = model.totalRowsAffectedCounts;
}
/**
* <p>The average execution duration per SQL statement in the query. Unit: seconds.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder avgExecutionTime(Long avgExecutionTime) {
this.avgExecutionTime = avgExecutionTime;
return this;
}
/**
* <p>The average number of I/O writes per SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder avgIOWriteCounts(Long avgIOWriteCounts) {
this.avgIOWriteCounts = avgIOWriteCounts;
return this;
}
/**
* <p>The average number of rows that were affected by the last SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder avgLastRowsAffectedCounts(Long avgLastRowsAffectedCounts) {
this.avgLastRowsAffectedCounts = avgLastRowsAffectedCounts;
return this;
}
/**
* <p>The average number of logical reads per SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder avgLogicalReadCounts(Long avgLogicalReadCounts) {
this.avgLogicalReadCounts = avgLogicalReadCounts;
return this;
}
/**
* <p>The average number of physical reads per SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder avgPhysicalReadCounts(Long avgPhysicalReadCounts) {
this.avgPhysicalReadCounts = avgPhysicalReadCounts;
return this;
}
/**
* <p>The average number of rows that were affected per SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder avgRowsAffectedCounts(Long avgRowsAffectedCounts) {
this.avgRowsAffectedCounts = avgRowsAffectedCounts;
return this;
}
/**
* <p>The date when the data was generated.</p>
*
* <strong>example:</strong>
* <p>2011-05-30Z</p>
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* <p>The name of the database.</p>
*
* <strong>example:</strong>
* <p>RDS_MySQL</p>
*/
public Builder DBName(String DBName) {
this.DBName = DBName;
return this;
}
/**
* <p>The longest execution duration of a specific SQL statement in the query. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder maxExecutionTime(Long maxExecutionTime) {
this.maxExecutionTime = maxExecutionTime;
return this;
}
/**
* <p>The longest execution duration of a specific SQL statement in the query. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>60000</p>
*/
public Builder maxExecutionTimeMS(Long maxExecutionTimeMS) {
this.maxExecutionTimeMS = maxExecutionTimeMS;
return this;
}
/**
* <p>The largest number of I/O writes that were performed by a specific SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder maxIOWriteCounts(Long maxIOWriteCounts) {
this.maxIOWriteCounts = maxIOWriteCounts;
return this;
}
/**
* <p>The largest number of rows that were affected by the last SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder maxLastRowsAffectedCounts(Long maxLastRowsAffectedCounts) {
this.maxLastRowsAffectedCounts = maxLastRowsAffectedCounts;
return this;
}
/**
* <p>The longest lock duration that was caused by a specific SQL statement in the query. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder maxLockTime(Long maxLockTime) {
this.maxLockTime = maxLockTime;
return this;
}
/**
* <p>The longest lock duration that was caused by a specific SQL statement in the query. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder maxLockTimeMS(Long maxLockTimeMS) {
this.maxLockTimeMS = maxLockTimeMS;
return this;
}
/**
* <p>The largest number of logical reads that were performed by a specific SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder maxLogicalReadCounts(Long maxLogicalReadCounts) {
this.maxLogicalReadCounts = maxLogicalReadCounts;
return this;
}
/**
* <p>The largest number of physical reads that were performed by a specific SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder maxPhysicalReadCounts(Long maxPhysicalReadCounts) {
this.maxPhysicalReadCounts = maxPhysicalReadCounts;
return this;
}
/**
* <p>The largest number of rows that were affected by a specific SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder maxRowsAffectedCounts(Long maxRowsAffectedCounts) {
this.maxRowsAffectedCounts = maxRowsAffectedCounts;
return this;
}
/**
* <p>The smallest number of I/O writes that were performed by a specific SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder minIOWriteCounts(Long minIOWriteCounts) {
this.minIOWriteCounts = minIOWriteCounts;
return this;
}
/**
* <p>The smallest number of rows that were affected by the last SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder minLastRowsAffectedCounts(Long minLastRowsAffectedCounts) {
this.minLastRowsAffectedCounts = minLastRowsAffectedCounts;
return this;
}
/**
* <p>The smallest number of logical reads that were performed by a specific SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder minLogicalReadCounts(Long minLogicalReadCounts) {
this.minLogicalReadCounts = minLogicalReadCounts;
return this;
}
/**
* <p>The smallest number of physical reads that were performed by a specific SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder minPhysicalReadCounts(Long minPhysicalReadCounts) {
this.minPhysicalReadCounts = minPhysicalReadCounts;
return this;
}
/**
* <p>The smallest number of rows that were affected by a specific SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder minRowsAffectedCounts(Long minRowsAffectedCounts) {
this.minRowsAffectedCounts = minRowsAffectedCounts;
return this;
}
/**
* <p>The total number of SQL statements that were executed in the query. This parameter is returned only for instances that run MySQL.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder mySQLTotalExecutionCounts(Long mySQLTotalExecutionCounts) {
this.mySQLTotalExecutionCounts = mySQLTotalExecutionCounts;
return this;
}
/**
* <p>The total execution duration of all SQL statements in the query. Unit: seconds. This parameter is returned only for instances that run MySQL.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder mySQLTotalExecutionTimes(Long mySQLTotalExecutionTimes) {
this.mySQLTotalExecutionTimes = mySQLTotalExecutionTimes;
return this;
}
/**
* <p>The largest number of rows that were parsed by a specific SQL statement in the query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder parseMaxRowCount(Long parseMaxRowCount) {
this.parseMaxRowCount = parseMaxRowCount;
return this;
}
/**
* <p>The total number of rows that were parsed by all SQL statements in the query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder parseTotalRowCounts(Long parseTotalRowCounts) {
this.parseTotalRowCounts = parseTotalRowCounts;
return this;
}
/**
* <p>The date on which the data report was generated.</p>
*
* <strong>example:</strong>
* <p>2011-05-30Z</p>
*/
public Builder reportTime(String reportTime) {
this.reportTime = reportTime;
return this;
}
/**
* <p>The largest number of rows that were returned by a specific SQL statement in the query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder returnMaxRowCount(Long returnMaxRowCount) {
this.returnMaxRowCount = returnMaxRowCount;
return this;
}
/**
* <p>The total number of rows that were returned by all SQL statements in the query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder returnTotalRowCounts(Long returnTotalRowCounts) {
this.returnTotalRowCounts = returnTotalRowCounts;
return this;
}
/**
* <p>The unique ID of the SQL statement. The ID is used to obtain the slow query logs of the SQL statement.</p>
*
* <strong>example:</strong>
* <p>U2FsdGVkxxxx</p>
*/
public Builder SQLHASH(String SQLHASH) {
this.SQLHASH = SQLHASH;
return this;
}
/**
* <p>The ID of the SQL statement in the statistical template of slow query logs. This parameter is replaced by the <strong>SQLHASH</strong> parameter.</p>
*
* <strong>example:</strong>
* <p>521584</p>
*/
public Builder SQLIdStr(String SQLIdStr) {
this.SQLIdStr = SQLIdStr;
return this;
}
/**
* <p>The average amount of CPU time per SQL statement in the query. Unit: seconds.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder SQLServerAvgCpuTime(Long SQLServerAvgCpuTime) {
this.SQLServerAvgCpuTime = SQLServerAvgCpuTime;
return this;
}
/**
* <p>The average execution duration per SQL statement in the query. Unit: seconds.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder SQLServerAvgExecutionTime(Long SQLServerAvgExecutionTime) {
this.SQLServerAvgExecutionTime = SQLServerAvgExecutionTime;
return this;
}
/**
* <p>The largest amount of CPU time that was used by a specific SQL statement in the query. Unit: seconds.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder SQLServerMaxCpuTime(Long SQLServerMaxCpuTime) {
this.SQLServerMaxCpuTime = SQLServerMaxCpuTime;
return this;
}
/**
* <p>The smallest amount of CPU time that was used by a specific SQL statement in the query. Unit: seconds.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder SQLServerMinCpuTime(Long SQLServerMinCpuTime) {
this.SQLServerMinCpuTime = SQLServerMinCpuTime;
return this;
}
/**
* <p>The smallest execution duration of a specific SQL statement in the query. Unit: seconds.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder SQLServerMinExecutionTime(Long SQLServerMinExecutionTime) {
this.SQLServerMinExecutionTime = SQLServerMinExecutionTime;
return this;
}
/**
* <p>The total amount of CPU time that was used by all SQL statements in the query. Unit: seconds.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder SQLServerTotalCpuTime(Long SQLServerTotalCpuTime) {
this.SQLServerTotalCpuTime = SQLServerTotalCpuTime;
return this;
}
/**
* <p>The total number of SQL statements that were executed in the query. This parameter is returned only for instances that run SQL Server.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder SQLServerTotalExecutionCounts(Long SQLServerTotalExecutionCounts) {
this.SQLServerTotalExecutionCounts = SQLServerTotalExecutionCounts;
return this;
}
/**
* <p>The total execution duration of all SQL statements in the query. This parameter is returned only for instances that run SQL Server. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder SQLServerTotalExecutionTimes(Long SQLServerTotalExecutionTimes) {
this.SQLServerTotalExecutionTimes = SQLServerTotalExecutionTimes;
return this;
}
/**
* <p>The SQL statement that was executed in the query.</p>
*
* <strong>example:</strong>
* <p>select id,name from tb_table</p>
*/
public Builder SQLText(String SQLText) {
this.SQLText = SQLText;
return this;
}
/**
* <p>The ID of the slow query log summary.</p>
*
* <strong>example:</strong>
* <p>26584213</p>
*/
public Builder slowLogId(Long slowLogId) {
this.slowLogId = slowLogId;
return this;
}
/**
* <p>The total number of I/O writes that were performed by all SQL statements in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder totalIOWriteCounts(Long totalIOWriteCounts) {
this.totalIOWriteCounts = totalIOWriteCounts;
return this;
}
/**
* <p>The total number of rows that were affected by the last SQL statement in the query.</p>
* <blockquote>
* <p> This parameter is returned only for instances that run SQL Server.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder totalLastRowsAffectedCounts(Long totalLastRowsAffectedCounts) {
this.totalLastRowsAffectedCounts = totalLastRowsAffectedCounts;
return this;
}
/**
* <p>The total lock duration that was caused by all SQL statements in the query. Unit: seconds.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder totalLockTimes(Long totalLockTimes) {
this.totalLockTimes = totalLockTimes;
return this;
}
/**
* <p>The total number of logical reads that were performed by all SQL statements in the query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalLogicalReadCounts(Long totalLogicalReadCounts) {
this.totalLogicalReadCounts = totalLogicalReadCounts;
return this;
}
/**
* <p>The total number of physical reads that were performed by all SQL statements in the query.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalPhysicalReadCounts(Long totalPhysicalReadCounts) {
this.totalPhysicalReadCounts = totalPhysicalReadCounts;
return this;
}
/**
* <p>The total number of rows that were affected by all SQL statements in the query.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder totalRowsAffectedCounts(Long totalRowsAffectedCounts) {
this.totalRowsAffectedCounts = totalRowsAffectedCounts;
return this;
}
public SQLSlowLog build() {
return new SQLSlowLog(this);
}
}
}
/**
*
* {@link DescribeSlowLogsResponseBody} extends {@link TeaModel}
*
* <p>DescribeSlowLogsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("SQLSlowLog")
private java.util.List<SQLSlowLog> SQLSlowLog;
private Items(Builder builder) {
this.SQLSlowLog = builder.SQLSlowLog;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return SQLSlowLog
*/
public java.util.List<SQLSlowLog> getSQLSlowLog() {
return this.SQLSlowLog;
}
public static final class Builder {
private java.util.List<SQLSlowLog> SQLSlowLog;
private Builder() {
}
private Builder(Items model) {
this.SQLSlowLog = model.SQLSlowLog;
}
/**
* SQLSlowLog.
*/
public Builder SQLSlowLog(java.util.List<SQLSlowLog> SQLSlowLog) {
this.SQLSlowLog = SQLSlowLog;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSupportOnlineResizeDiskRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSupportOnlineResizeDiskRequest} extends {@link RequestModel}
*
* <p>DescribeSupportOnlineResizeDiskRequest</p>
*/
public class DescribeSupportOnlineResizeDiskRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
private DescribeSupportOnlineResizeDiskRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSupportOnlineResizeDiskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
public static final class Builder extends Request.Builder<DescribeSupportOnlineResizeDiskRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Builder() {
super();
}
private Builder(DescribeSupportOnlineResizeDiskRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
@Override
public DescribeSupportOnlineResizeDiskRequest build() {
return new DescribeSupportOnlineResizeDiskRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSupportOnlineResizeDiskResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSupportOnlineResizeDiskResponse} extends {@link TeaModel}
*
* <p>DescribeSupportOnlineResizeDiskResponse</p>
*/
public class DescribeSupportOnlineResizeDiskResponse 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 DescribeSupportOnlineResizeDiskResponseBody body;
private DescribeSupportOnlineResizeDiskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeSupportOnlineResizeDiskResponse 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 DescribeSupportOnlineResizeDiskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeSupportOnlineResizeDiskResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeSupportOnlineResizeDiskResponseBody body);
@Override
DescribeSupportOnlineResizeDiskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeSupportOnlineResizeDiskResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeSupportOnlineResizeDiskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeSupportOnlineResizeDiskResponse 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(DescribeSupportOnlineResizeDiskResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeSupportOnlineResizeDiskResponse build() {
return new DescribeSupportOnlineResizeDiskResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeSupportOnlineResizeDiskResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSupportOnlineResizeDiskResponseBody} extends {@link TeaModel}
*
* <p>DescribeSupportOnlineResizeDiskResponseBody</p>
*/
public class DescribeSupportOnlineResizeDiskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private String data;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private DescribeSupportOnlineResizeDiskResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSupportOnlineResizeDiskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public String getData() {
return this.data;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private String data;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(DescribeSupportOnlineResizeDiskResponseBody model) {
this.code = model.code;
this.data = model.data;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The response code returned.</p>
*
* <strong>example:</strong>
* <p>NotExists.InstanceId</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The response result set.</p>
*
* <strong>example:</strong>
* <p>{"SupportOnlineResizeDisk":true,"DBInstanceName":"rm-uf6wjk5xxxxxxx"}</p>
*/
public Builder data(String data) {
this.data = data;
return this;
}
/**
* <p>The response code.</p>
*
* <strong>example:</strong>
* <p>successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>8B993DA9-5272-5414-94E3-4CA8BA0146C2</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request was successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public DescribeSupportOnlineResizeDiskResponseBody build() {
return new DescribeSupportOnlineResizeDiskResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeTagsRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeTagsRequest} extends {@link RequestModel}
*
* <p>DescribeTagsRequest</p>
*/
public class DescribeTagsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tags")
private String tags;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("proxyId")
private String proxyId;
private DescribeTagsRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.resourceType = builder.resourceType;
this.tags = builder.tags;
this.proxyId = builder.proxyId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeTagsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return tags
*/
public String getTags() {
return this.tags;
}
/**
* @return proxyId
*/
public String getProxyId() {
return this.proxyId;
}
public static final class Builder extends Request.Builder<DescribeTagsRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String resourceType;
private String tags;
private String proxyId;
private Builder() {
super();
}
private Builder(DescribeTagsRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.resourceType = request.resourceType;
this.tags = request.tags;
this.proxyId = request.proxyId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.</p>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOC****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <blockquote>
* <p> If you specify this parameter, all tags that are added to this instance are queried, and other filter conditions becomes invalid.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The type of resource. Set the value to INSTANCE.</p>
*
* <strong>example:</strong>
* <p>INSTANCE</p>
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* <p>The tag that you want to query. The value of the parameter consists of TagKey and TagValue. Format: <code>{"TagKey":"TagValue"}</code>.</p>
*
* <strong>example:</strong>
* <p>{“key1”:”value1”}</p>
*/
public Builder tags(String tags) {
this.putQueryParameter("Tags", tags);
this.tags = tags;
return this;
}
/**
* <p>The ID of the proxy mode.</p>
*
* <strong>example:</strong>
* <p>API</p>
*/
public Builder proxyId(String proxyId) {
this.putQueryParameter("proxyId", proxyId);
this.proxyId = proxyId;
return this;
}
@Override
public DescribeTagsRequest build() {
return new DescribeTagsRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeTagsResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeTagsResponse} extends {@link TeaModel}
*
* <p>DescribeTagsResponse</p>
*/
public class DescribeTagsResponse 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 DescribeTagsResponseBody body;
private DescribeTagsResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeTagsResponse 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 DescribeTagsResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeTagsResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeTagsResponseBody body);
@Override
DescribeTagsResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeTagsResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeTagsResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeTagsResponse 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(DescribeTagsResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeTagsResponse build() {
return new DescribeTagsResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeTagsResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeTagsResponseBody</p>
*/
public class DescribeTagsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DescribeTagsResponseBody(Builder builder) {
this.items = builder.items;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeTagsResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private Items items;
private String requestId;
private Builder() {
}
private Builder(DescribeTagsResponseBody model) {
this.items = model.items;
this.requestId = model.requestId;
}
/**
* <p>The tags that are added to the instance.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>1AD222E9-E606-4A42-BF6D-8A4442913CEF</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribeTagsResponseBody build() {
return new DescribeTagsResponseBody(this);
}
}
/**
*
* {@link DescribeTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeTagsResponseBody</p>
*/
public static class DBInstanceIds extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceIds")
private java.util.List<String> DBInstanceIds;
private DBInstanceIds(Builder builder) {
this.DBInstanceIds = builder.DBInstanceIds;
}
public static Builder builder() {
return new Builder();
}
public static DBInstanceIds create() {
return builder().build();
}
/**
* @return DBInstanceIds
*/
public java.util.List<String> getDBInstanceIds() {
return this.DBInstanceIds;
}
public static final class Builder {
private java.util.List<String> DBInstanceIds;
private Builder() {
}
private Builder(DBInstanceIds model) {
this.DBInstanceIds = model.DBInstanceIds;
}
/**
* DBInstanceIds.
*/
public Builder DBInstanceIds(java.util.List<String> DBInstanceIds) {
this.DBInstanceIds = DBInstanceIds;
return this;
}
public DBInstanceIds build() {
return new DBInstanceIds(this);
}
}
}
/**
*
* {@link DescribeTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeTagsResponseBody</p>
*/
public static class TagInfos extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceIds")
private DBInstanceIds DBInstanceIds;
@com.aliyun.core.annotation.NameInMap("TagKey")
private String tagKey;
@com.aliyun.core.annotation.NameInMap("TagValue")
private String tagValue;
private TagInfos(Builder builder) {
this.DBInstanceIds = builder.DBInstanceIds;
this.tagKey = builder.tagKey;
this.tagValue = builder.tagValue;
}
public static Builder builder() {
return new Builder();
}
public static TagInfos create() {
return builder().build();
}
/**
* @return DBInstanceIds
*/
public DBInstanceIds getDBInstanceIds() {
return this.DBInstanceIds;
}
/**
* @return tagKey
*/
public String getTagKey() {
return this.tagKey;
}
/**
* @return tagValue
*/
public String getTagValue() {
return this.tagValue;
}
public static final class Builder {
private DBInstanceIds DBInstanceIds;
private String tagKey;
private String tagValue;
private Builder() {
}
private Builder(TagInfos model) {
this.DBInstanceIds = model.DBInstanceIds;
this.tagKey = model.tagKey;
this.tagValue = model.tagValue;
}
/**
* <p>The IDs of the instances to which the tag is added.</p>
*/
public Builder DBInstanceIds(DBInstanceIds DBInstanceIds) {
this.DBInstanceIds = DBInstanceIds;
return this;
}
/**
* <p>The tag key.</p>
*
* <strong>example:</strong>
* <p>key1</p>
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* <p>The tag value.</p>
*
* <strong>example:</strong>
* <p>value1</p>
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public TagInfos build() {
return new TagInfos(this);
}
}
}
/**
*
* {@link DescribeTagsResponseBody} extends {@link TeaModel}
*
* <p>DescribeTagsResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TagInfos")
private java.util.List<TagInfos> tagInfos;
private Items(Builder builder) {
this.tagInfos = builder.tagInfos;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return tagInfos
*/
public java.util.List<TagInfos> getTagInfos() {
return this.tagInfos;
}
public static final class Builder {
private java.util.List<TagInfos> tagInfos;
private Builder() {
}
private Builder(Items model) {
this.tagInfos = model.tagInfos;
}
/**
* TagInfos.
*/
public Builder tagInfos(java.util.List<TagInfos> tagInfos) {
this.tagInfos = tagInfos;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeTasksRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeTasksRequest} extends {@link RequestModel}
*
* <p>DescribeTasksRequest</p>
*/
public class DescribeTasksRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 2147483647, minimum = 1)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 30)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskAction")
private String taskAction;
private DescribeTasksRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.endTime = builder.endTime;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.startTime = builder.startTime;
this.status = builder.status;
this.taskAction = builder.taskAction;
}
public static Builder builder() {
return new Builder();
}
public static DescribeTasksRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return taskAction
*/
public String getTaskAction() {
return this.taskAction;
}
public static final class Builder extends Request.Builder<DescribeTasksRequest, Builder> {
private String DBInstanceId;
private String endTime;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String startTime;
private String status;
private String taskAction;
private Builder() {
super();
}
private Builder(DescribeTasksRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.endTime = request.endTime;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.startTime = request.startTime;
this.status = request.status;
this.taskAction = request.taskAction;
}
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The end of the time range to query. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm</em>Z format. The time must be in UTC.</p>
*
* <strong>example:</strong>
* <p>2020-11-20T02:00Z</p>
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number. Pages start from page 1. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return per page. Valid values: <strong>30 to 100</strong>. Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The beginning of the time range to query. Specify the time in the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm</em>Z format. The time must be in UTC.</p>
*
* <strong>example:</strong>
* <p>2020-11-20T01:00Z</p>
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* <p>The status of the task. This parameter is invalid.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder status(String status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* <p>The operation that is used by the task.</p>
*
* <strong>example:</strong>
* <p>CreateInstance</p>
*/
public Builder taskAction(String taskAction) {
this.putQueryParameter("TaskAction", taskAction);
this.taskAction = taskAction;
return this;
}
@Override
public DescribeTasksRequest build() {
return new DescribeTasksRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeTasksResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeTasksResponse} extends {@link TeaModel}
*
* <p>DescribeTasksResponse</p>
*/
public class DescribeTasksResponse 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 DescribeTasksResponseBody body;
private DescribeTasksResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeTasksResponse 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 DescribeTasksResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeTasksResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeTasksResponseBody body);
@Override
DescribeTasksResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeTasksResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeTasksResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeTasksResponse 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(DescribeTasksResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeTasksResponse build() {
return new DescribeTasksResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeTasksResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeTasksResponseBody} extends {@link TeaModel}
*
* <p>DescribeTasksResponseBody</p>
*/
public class DescribeTasksResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private Items items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeTasksResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeTasksResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public Items getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private Items items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeTasksResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The details of the task execution.</p>
*/
public Builder items(Items items) {
this.items = items;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries on the current page.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A103039D-B1B2-4C57-B989-7D7C0DA95426</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries.</p>
*
* <strong>example:</strong>
* <p>40</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeTasksResponseBody build() {
return new DescribeTasksResponseBody(this);
}
}
/**
*
* {@link DescribeTasksResponseBody} extends {@link TeaModel}
*
* <p>DescribeTasksResponseBody</p>
*/
public static class TaskProgressInfo extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BeginTime")
private String beginTime;
@com.aliyun.core.annotation.NameInMap("CurrentStepName")
private String currentStepName;
@com.aliyun.core.annotation.NameInMap("DBName")
private String DBName;
@com.aliyun.core.annotation.NameInMap("ExpectedFinishTime")
private String expectedFinishTime;
@com.aliyun.core.annotation.NameInMap("FinishTime")
private String finishTime;
@com.aliyun.core.annotation.NameInMap("Progress")
private String progress;
@com.aliyun.core.annotation.NameInMap("ProgressInfo")
private String progressInfo;
@com.aliyun.core.annotation.NameInMap("Remain")
private Integer remain;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("StepProgressInfo")
private String stepProgressInfo;
@com.aliyun.core.annotation.NameInMap("StepsInfo")
private String stepsInfo;
@com.aliyun.core.annotation.NameInMap("TaskAction")
private String taskAction;
@com.aliyun.core.annotation.NameInMap("TaskErrorCode")
private String taskErrorCode;
@com.aliyun.core.annotation.NameInMap("TaskErrorMessage")
private String taskErrorMessage;
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private TaskProgressInfo(Builder builder) {
this.beginTime = builder.beginTime;
this.currentStepName = builder.currentStepName;
this.DBName = builder.DBName;
this.expectedFinishTime = builder.expectedFinishTime;
this.finishTime = builder.finishTime;
this.progress = builder.progress;
this.progressInfo = builder.progressInfo;
this.remain = builder.remain;
this.status = builder.status;
this.stepProgressInfo = builder.stepProgressInfo;
this.stepsInfo = builder.stepsInfo;
this.taskAction = builder.taskAction;
this.taskErrorCode = builder.taskErrorCode;
this.taskErrorMessage = builder.taskErrorMessage;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static TaskProgressInfo create() {
return builder().build();
}
/**
* @return beginTime
*/
public String getBeginTime() {
return this.beginTime;
}
/**
* @return currentStepName
*/
public String getCurrentStepName() {
return this.currentStepName;
}
/**
* @return DBName
*/
public String getDBName() {
return this.DBName;
}
/**
* @return expectedFinishTime
*/
public String getExpectedFinishTime() {
return this.expectedFinishTime;
}
/**
* @return finishTime
*/
public String getFinishTime() {
return this.finishTime;
}
/**
* @return progress
*/
public String getProgress() {
return this.progress;
}
/**
* @return progressInfo
*/
public String getProgressInfo() {
return this.progressInfo;
}
/**
* @return remain
*/
public Integer getRemain() {
return this.remain;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return stepProgressInfo
*/
public String getStepProgressInfo() {
return this.stepProgressInfo;
}
/**
* @return stepsInfo
*/
public String getStepsInfo() {
return this.stepsInfo;
}
/**
* @return taskAction
*/
public String getTaskAction() {
return this.taskAction;
}
/**
* @return taskErrorCode
*/
public String getTaskErrorCode() {
return this.taskErrorCode;
}
/**
* @return taskErrorMessage
*/
public String getTaskErrorMessage() {
return this.taskErrorMessage;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder {
private String beginTime;
private String currentStepName;
private String DBName;
private String expectedFinishTime;
private String finishTime;
private String progress;
private String progressInfo;
private Integer remain;
private String status;
private String stepProgressInfo;
private String stepsInfo;
private String taskAction;
private String taskErrorCode;
private String taskErrorMessage;
private String taskId;
private Builder() {
}
private Builder(TaskProgressInfo model) {
this.beginTime = model.beginTime;
this.currentStepName = model.currentStepName;
this.DBName = model.DBName;
this.expectedFinishTime = model.expectedFinishTime;
this.finishTime = model.finishTime;
this.progress = model.progress;
this.progressInfo = model.progressInfo;
this.remain = model.remain;
this.status = model.status;
this.stepProgressInfo = model.stepProgressInfo;
this.stepsInfo = model.stepsInfo;
this.taskAction = model.taskAction;
this.taskErrorCode = model.taskErrorCode;
this.taskErrorMessage = model.taskErrorMessage;
this.taskId = model.taskId;
}
/**
* <p>The start time of the task. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2020-11-20T01:00Z</p>
*/
public Builder beginTime(String beginTime) {
this.beginTime = beginTime;
return this;
}
/**
* <p>The name of the subtask.</p>
*
* <strong>example:</strong>
* <p>create_instance</p>
*/
public Builder currentStepName(String currentStepName) {
this.currentStepName = currentStepName;
return this;
}
/**
* <p>The name of the database. If the task involves a database, the database name is returned.</p>
*
* <strong>example:</strong>
* <p>DBtest</p>
*/
public Builder DBName(String DBName) {
this.DBName = DBName;
return this;
}
/**
* <p>The estimated end time of the task.</p>
* <blockquote>
* <p> In most cases, this parameter is empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>null</p>
*/
public Builder expectedFinishTime(String expectedFinishTime) {
this.expectedFinishTime = expectedFinishTime;
return this;
}
/**
* <p>The end time of the task. The time follows the ISO 8601 standard in the <em>yyyy-MM-dd</em>T<em>HH:mm</em>Z format. The time is displayed in UTC.</p>
*
* <strong>example:</strong>
* <p>2020-11-20T02:00Z</p>
*/
public Builder finishTime(String finishTime) {
this.finishTime = finishTime;
return this;
}
/**
* <p>The task progress in percentage.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder progress(String progress) {
this.progress = progress;
return this;
}
/**
* <p>The description of the task progress.</p>
* <blockquote>
* <p> If no progress description is provided for the task, this parameter is empty.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>null</p>
*/
public Builder progressInfo(String progressInfo) {
this.progressInfo = progressInfo;
return this;
}
/**
* <p>The estimated remaining time of the task. Unit: seconds.</p>
* <blockquote>
* <p> If the task is not running, this parameter is not returned or the returned value is <strong>0</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>60</p>
*/
public Builder remain(Integer remain) {
this.remain = remain;
return this;
}
/**
* <p>The status of the task.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The progress of the subtask. For example, a value of <code>1/4</code> indicates that the task consists of four subtasks and the first subtask is in progress.</p>
*
* <strong>example:</strong>
* <p>1/4</p>
*/
public Builder stepProgressInfo(String stepProgressInfo) {
this.stepProgressInfo = stepProgressInfo;
return this;
}
/**
* <p>The details of the subtasks.</p>
*
* <strong>example:</strong>
* <p>null</p>
*/
public Builder stepsInfo(String stepsInfo) {
this.stepsInfo = stepsInfo;
return this;
}
/**
* <p>The operation that is used by the task, such as <strong>CreateDBInstance</strong>.</p>
*
* <strong>example:</strong>
* <p>CreateDBInstance</p>
*/
public Builder taskAction(String taskAction) {
this.taskAction = taskAction;
return this;
}
/**
* <p>The error code that is returned when an error occurs.</p>
* <blockquote>
* <p> This parameter is returned only when an error occurs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>null</p>
*/
public Builder taskErrorCode(String taskErrorCode) {
this.taskErrorCode = taskErrorCode;
return this;
}
/**
* <p>The error message that is returned when an error occurs.</p>
* <blockquote>
* <p> This parameter is returned only when an error occurs.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>null</p>
*/
public Builder taskErrorMessage(String taskErrorMessage) {
this.taskErrorMessage = taskErrorMessage;
return this;
}
/**
* <p>The task ID. You can use one of the following methods to obtain the task ID:</p>
*
* <strong>example:</strong>
* <p>3472xxxxx</p>
*/
public Builder taskId(String taskId) {
this.taskId = taskId;
return this;
}
public TaskProgressInfo build() {
return new TaskProgressInfo(this);
}
}
}
/**
*
* {@link DescribeTasksResponseBody} extends {@link TeaModel}
*
* <p>DescribeTasksResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TaskProgressInfo")
private java.util.List<TaskProgressInfo> taskProgressInfo;
private Items(Builder builder) {
this.taskProgressInfo = builder.taskProgressInfo;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return taskProgressInfo
*/
public java.util.List<TaskProgressInfo> getTaskProgressInfo() {
return this.taskProgressInfo;
}
public static final class Builder {
private java.util.List<TaskProgressInfo> taskProgressInfo;
private Builder() {
}
private Builder(Items model) {
this.taskProgressInfo = model.taskProgressInfo;
}
/**
* TaskProgressInfo.
*/
public Builder taskProgressInfo(java.util.List<TaskProgressInfo> taskProgressInfo) {
this.taskProgressInfo = taskProgressInfo;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeUpgradeMajorVersionPrecheckTaskRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeUpgradeMajorVersionPrecheckTaskRequest} extends {@link RequestModel}
*
* <p>DescribeUpgradeMajorVersionPrecheckTaskRequest</p>
*/
public class DescribeUpgradeMajorVersionPrecheckTaskRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 2147483647, minimum = 1)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 30)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetMajorVersion")
private String targetMajorVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskId")
private Integer taskId;
private DescribeUpgradeMajorVersionPrecheckTaskRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.targetMajorVersion = builder.targetMajorVersion;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeUpgradeMajorVersionPrecheckTaskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return targetMajorVersion
*/
public String getTargetMajorVersion() {
return this.targetMajorVersion;
}
/**
* @return taskId
*/
public Integer getTaskId() {
return this.taskId;
}
public static final class Builder extends Request.Builder<DescribeUpgradeMajorVersionPrecheckTaskRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String targetMajorVersion;
private Integer taskId;
private Builder() {
super();
}
private Builder(DescribeUpgradeMajorVersionPrecheckTaskRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.targetMajorVersion = request.targetMajorVersion;
this.taskId = request.taskId;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pgm-bp1c808s731l****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number.</p>
* <p>Valid values: any non-zero positive integer. Default value: 1</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
* <p>Valid values:</p>
* <ul>
* <li>30 (default)</li>
* <li>50</li>
* <li>100</li>
* </ul>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The new major engine version of the instance. The new major engine version must be later than the original major engine version.</p>
*
* <strong>example:</strong>
* <p>12.0</p>
*/
public Builder targetMajorVersion(String targetMajorVersion) {
this.putQueryParameter("TargetMajorVersion", targetMajorVersion);
this.targetMajorVersion = targetMajorVersion;
return this;
}
/**
* <p>The ID of the upgrade check task. You can obtain the ID of the upgrade check task from the <strong>TaskId</strong> parameter in the response to the UpgradeDBInstanceMajorVersionPrecheck operation.</p>
*
* <strong>example:</strong>
* <p>416980000</p>
*/
public Builder taskId(Integer taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
@Override
public DescribeUpgradeMajorVersionPrecheckTaskRequest build() {
return new DescribeUpgradeMajorVersionPrecheckTaskRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeUpgradeMajorVersionPrecheckTaskResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeUpgradeMajorVersionPrecheckTaskResponse} extends {@link TeaModel}
*
* <p>DescribeUpgradeMajorVersionPrecheckTaskResponse</p>
*/
public class DescribeUpgradeMajorVersionPrecheckTaskResponse 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 DescribeUpgradeMajorVersionPrecheckTaskResponseBody body;
private DescribeUpgradeMajorVersionPrecheckTaskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeUpgradeMajorVersionPrecheckTaskResponse 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 DescribeUpgradeMajorVersionPrecheckTaskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeUpgradeMajorVersionPrecheckTaskResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeUpgradeMajorVersionPrecheckTaskResponseBody body);
@Override
DescribeUpgradeMajorVersionPrecheckTaskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeUpgradeMajorVersionPrecheckTaskResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeUpgradeMajorVersionPrecheckTaskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeUpgradeMajorVersionPrecheckTaskResponse 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(DescribeUpgradeMajorVersionPrecheckTaskResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeUpgradeMajorVersionPrecheckTaskResponse build() {
return new DescribeUpgradeMajorVersionPrecheckTaskResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeUpgradeMajorVersionPrecheckTaskResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeUpgradeMajorVersionPrecheckTaskResponseBody} extends {@link TeaModel}
*
* <p>DescribeUpgradeMajorVersionPrecheckTaskResponseBody</p>
*/
public class DescribeUpgradeMajorVersionPrecheckTaskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeUpgradeMajorVersionPrecheckTaskResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeUpgradeMajorVersionPrecheckTaskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private java.util.List<Items> items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeUpgradeMajorVersionPrecheckTaskResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The information about the upgrade check report.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>D1586777-41B5-5F9E-81E8-93DFDD379024</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries in the upgrade check report.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeUpgradeMajorVersionPrecheckTaskResponseBody build() {
return new DescribeUpgradeMajorVersionPrecheckTaskResponseBody(this);
}
}
/**
*
* {@link DescribeUpgradeMajorVersionPrecheckTaskResponseBody} extends {@link TeaModel}
*
* <p>DescribeUpgradeMajorVersionPrecheckTaskResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CheckTime")
private String checkTime;
@com.aliyun.core.annotation.NameInMap("Detail")
private String detail;
@com.aliyun.core.annotation.NameInMap("EffectiveTime")
private String effectiveTime;
@com.aliyun.core.annotation.NameInMap("RecommendDiskSize")
private Integer recommendDiskSize;
@com.aliyun.core.annotation.NameInMap("RecommendLeastMemSize")
private Integer recommendLeastMemSize;
@com.aliyun.core.annotation.NameInMap("RecommendMemSize")
private Integer recommendMemSize;
@com.aliyun.core.annotation.NameInMap("Result")
private String result;
@com.aliyun.core.annotation.NameInMap("SourceMajorVersion")
private String sourceMajorVersion;
@com.aliyun.core.annotation.NameInMap("TargetMajorVersion")
private String targetMajorVersion;
@com.aliyun.core.annotation.NameInMap("TaskId")
private Integer taskId;
@com.aliyun.core.annotation.NameInMap("UpgradeMode")
private String upgradeMode;
private Items(Builder builder) {
this.checkTime = builder.checkTime;
this.detail = builder.detail;
this.effectiveTime = builder.effectiveTime;
this.recommendDiskSize = builder.recommendDiskSize;
this.recommendLeastMemSize = builder.recommendLeastMemSize;
this.recommendMemSize = builder.recommendMemSize;
this.result = builder.result;
this.sourceMajorVersion = builder.sourceMajorVersion;
this.targetMajorVersion = builder.targetMajorVersion;
this.taskId = builder.taskId;
this.upgradeMode = builder.upgradeMode;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return checkTime
*/
public String getCheckTime() {
return this.checkTime;
}
/**
* @return detail
*/
public String getDetail() {
return this.detail;
}
/**
* @return effectiveTime
*/
public String getEffectiveTime() {
return this.effectiveTime;
}
/**
* @return recommendDiskSize
*/
public Integer getRecommendDiskSize() {
return this.recommendDiskSize;
}
/**
* @return recommendLeastMemSize
*/
public Integer getRecommendLeastMemSize() {
return this.recommendLeastMemSize;
}
/**
* @return recommendMemSize
*/
public Integer getRecommendMemSize() {
return this.recommendMemSize;
}
/**
* @return result
*/
public String getResult() {
return this.result;
}
/**
* @return sourceMajorVersion
*/
public String getSourceMajorVersion() {
return this.sourceMajorVersion;
}
/**
* @return targetMajorVersion
*/
public String getTargetMajorVersion() {
return this.targetMajorVersion;
}
/**
* @return taskId
*/
public Integer getTaskId() {
return this.taskId;
}
/**
* @return upgradeMode
*/
public String getUpgradeMode() {
return this.upgradeMode;
}
public static final class Builder {
private String checkTime;
private String detail;
private String effectiveTime;
private Integer recommendDiskSize;
private Integer recommendLeastMemSize;
private Integer recommendMemSize;
private String result;
private String sourceMajorVersion;
private String targetMajorVersion;
private Integer taskId;
private String upgradeMode;
private Builder() {
}
private Builder(Items model) {
this.checkTime = model.checkTime;
this.detail = model.detail;
this.effectiveTime = model.effectiveTime;
this.recommendDiskSize = model.recommendDiskSize;
this.recommendLeastMemSize = model.recommendLeastMemSize;
this.recommendMemSize = model.recommendMemSize;
this.result = model.result;
this.sourceMajorVersion = model.sourceMajorVersion;
this.targetMajorVersion = model.targetMajorVersion;
this.taskId = model.taskId;
this.upgradeMode = model.upgradeMode;
}
/**
* <p>The time at which the upgrade check was performed.</p>
* <p>The value of this parameter is a timestamp that follows the UNIX time format. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1635143903000</p>
*/
public Builder checkTime(String checkTime) {
this.checkTime = checkTime;
return this;
}
/**
* <p>The content of the upgrade check report.</p>
*
* <strong>example:</strong>
* <p>[user_check_report]User check success\n[pg_upgrade_internal.log]Performing...</p>
*/
public Builder detail(String detail) {
this.detail = detail;
return this;
}
/**
* <p>The expiration time of the upgrade check report.</p>
* <p>The value of this parameter is a timestamp that follows the UNIX time format. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1635748703000</p>
*/
public Builder effectiveTime(String effectiveTime) {
this.effectiveTime = effectiveTime;
return this;
}
/**
* <p>The minimum recommended disk capacity for upgrading. Unit: GB.</p>
* <blockquote>
* <p>This parameter is returned only for RDS PostgreSQL instances.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder recommendDiskSize(Integer recommendDiskSize) {
this.recommendDiskSize = recommendDiskSize;
return this;
}
/**
* <p>The minimum recommended memory for upgrading. Unit: GB.</p>
* <blockquote>
* <p>This parameter is returned only for RDS PostgreSQL instances.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>8</p>
*/
public Builder recommendLeastMemSize(Integer recommendLeastMemSize) {
this.recommendLeastMemSize = recommendLeastMemSize;
return this;
}
/**
* <p>Recommended memory when upgrading. Unit: GB.</p>
* <p>When the memory of the instance is greater than or equal to the recommended memory, it will be upgraded at the fastest speed to minimize the read-only time of the instance.</p>
* <blockquote>
* <p>This parameter is returned only for RDS PostgreSQL instances.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>32</p>
*/
public Builder recommendMemSize(Integer recommendMemSize) {
this.recommendMemSize = recommendMemSize;
return this;
}
/**
* <p>The result of the upgrade check.</p>
* <p>Valid values:</p>
* <ul>
* <li>Success</li>
* <li>Fail</li>
* </ul>
* <blockquote>
* <p> If the check result is <strong>Fail</strong>, you must check the value of the <strong>Detail</strong> parameter to obtain the information about the errors that occurred, resolve the errors, and then try again. For more information about how to resolve common errors, see <a href="https://help.aliyun.com/document_detail/218391.html">Introduction to the check report for a major engine version upgrade to an ApsaraDB RDS for PostgreSQL instance</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder result(String result) {
this.result = result;
return this;
}
/**
* <p>The original major engine version of the instance.</p>
*
* <strong>example:</strong>
* <p>11.0</p>
*/
public Builder sourceMajorVersion(String sourceMajorVersion) {
this.sourceMajorVersion = sourceMajorVersion;
return this;
}
/**
* <p>The new major engine version of the instance.</p>
*
* <strong>example:</strong>
* <p>12.0</p>
*/
public Builder targetMajorVersion(String targetMajorVersion) {
this.targetMajorVersion = targetMajorVersion;
return this;
}
/**
* <p>The ID of the upgrade check task.</p>
*
* <strong>example:</strong>
* <p>416980000</p>
*/
public Builder taskId(Integer taskId) {
this.taskId = taskId;
return this;
}
/**
* UpgradeMode.
*/
public Builder upgradeMode(String upgradeMode) {
this.upgradeMode = upgradeMode;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeUpgradeMajorVersionTasksRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeUpgradeMajorVersionTasksRequest} extends {@link RequestModel}
*
* <p>DescribeUpgradeMajorVersionTasksRequest</p>
*/
public class DescribeUpgradeMajorVersionTasksRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
@com.aliyun.core.annotation.Validation(maximum = 2147483647, minimum = 1)
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
@com.aliyun.core.annotation.Validation(maximum = 100, minimum = 30)
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TargetMajorVersion")
private String targetMajorVersion;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskId")
private Integer taskId;
private DescribeUpgradeMajorVersionTasksRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.targetMajorVersion = builder.targetMajorVersion;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeUpgradeMajorVersionTasksRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return targetMajorVersion
*/
public String getTargetMajorVersion() {
return this.targetMajorVersion;
}
/**
* @return taskId
*/
public Integer getTaskId() {
return this.taskId;
}
public static final class Builder extends Request.Builder<DescribeUpgradeMajorVersionTasksRequest, Builder> {
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String targetMajorVersion;
private Integer taskId;
private Builder() {
super();
}
private Builder(DescribeUpgradeMajorVersionTasksRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.targetMajorVersion = request.targetMajorVersion;
this.taskId = request.taskId;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>pgm-bp1gm3yh0ht1****</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The page number.</p>
* <p>Pages start from 1.</p>
* <p>Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
* <p>Valid values: <strong>30</strong> to <strong>100</strong>.</p>
* <p>Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The major engine version of the new instance. Valid values:</p>
* <ul>
* <li><strong>10.0</strong></li>
* <li><strong>11.0</strong></li>
* <li><strong>12.0</strong></li>
* <li><strong>13.0</strong></li>
* <li><strong>14.0</strong></li>
* <li><strong>15.0</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>12.0</p>
*/
public Builder targetMajorVersion(String targetMajorVersion) {
this.putQueryParameter("TargetMajorVersion", targetMajorVersion);
this.targetMajorVersion = targetMajorVersion;
return this;
}
/**
* <p>A reserved parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>417450000</p>
*/
public Builder taskId(Integer taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
@Override
public DescribeUpgradeMajorVersionTasksRequest build() {
return new DescribeUpgradeMajorVersionTasksRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeUpgradeMajorVersionTasksResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeUpgradeMajorVersionTasksResponse} extends {@link TeaModel}
*
* <p>DescribeUpgradeMajorVersionTasksResponse</p>
*/
public class DescribeUpgradeMajorVersionTasksResponse 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 DescribeUpgradeMajorVersionTasksResponseBody body;
private DescribeUpgradeMajorVersionTasksResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeUpgradeMajorVersionTasksResponse 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 DescribeUpgradeMajorVersionTasksResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeUpgradeMajorVersionTasksResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeUpgradeMajorVersionTasksResponseBody body);
@Override
DescribeUpgradeMajorVersionTasksResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeUpgradeMajorVersionTasksResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeUpgradeMajorVersionTasksResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeUpgradeMajorVersionTasksResponse 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(DescribeUpgradeMajorVersionTasksResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeUpgradeMajorVersionTasksResponse build() {
return new DescribeUpgradeMajorVersionTasksResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeUpgradeMajorVersionTasksResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeUpgradeMajorVersionTasksResponseBody} extends {@link TeaModel}
*
* <p>DescribeUpgradeMajorVersionTasksResponseBody</p>
*/
public class DescribeUpgradeMajorVersionTasksResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Items")
private java.util.List<Items> items;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageRecordCount")
private Integer pageRecordCount;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalRecordCount")
private Integer totalRecordCount;
private DescribeUpgradeMajorVersionTasksResponseBody(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageRecordCount = builder.pageRecordCount;
this.requestId = builder.requestId;
this.totalRecordCount = builder.totalRecordCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeUpgradeMajorVersionTasksResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return items
*/
public java.util.List<Items> getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageRecordCount
*/
public Integer getPageRecordCount() {
return this.pageRecordCount;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalRecordCount
*/
public Integer getTotalRecordCount() {
return this.totalRecordCount;
}
public static final class Builder {
private java.util.List<Items> items;
private Integer pageNumber;
private Integer pageRecordCount;
private String requestId;
private Integer totalRecordCount;
private Builder() {
}
private Builder(DescribeUpgradeMajorVersionTasksResponseBody model) {
this.items = model.items;
this.pageNumber = model.pageNumber;
this.pageRecordCount = model.pageRecordCount;
this.requestId = model.requestId;
this.totalRecordCount = model.totalRecordCount;
}
/**
* <p>The tasks for major engine version upgrades.</p>
*/
public Builder items(java.util.List<Items> items) {
this.items = items;
return this;
}
/**
* <p>The page number.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries per page.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageRecordCount(Integer pageRecordCount) {
this.pageRecordCount = pageRecordCount;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>152E0C6D-B9C3-4468-9F2C-FEF9D9E8417B</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of entries returned.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder totalRecordCount(Integer totalRecordCount) {
this.totalRecordCount = totalRecordCount;
return this;
}
public DescribeUpgradeMajorVersionTasksResponseBody build() {
return new DescribeUpgradeMajorVersionTasksResponseBody(this);
}
}
/**
*
* {@link DescribeUpgradeMajorVersionTasksResponseBody} extends {@link TeaModel}
*
* <p>DescribeUpgradeMajorVersionTasksResponseBody</p>
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CollectStatMode")
private String collectStatMode;
@com.aliyun.core.annotation.NameInMap("Detail")
private String detail;
@com.aliyun.core.annotation.NameInMap("EndTime")
private String endTime;
@com.aliyun.core.annotation.NameInMap("Result")
private String result;
@com.aliyun.core.annotation.NameInMap("SourceInsName")
private String sourceInsName;
@com.aliyun.core.annotation.NameInMap("SourceMajorVersion")
private String sourceMajorVersion;
@com.aliyun.core.annotation.NameInMap("StartTime")
private String startTime;
@com.aliyun.core.annotation.NameInMap("SwitchEndTime")
private String switchEndTime;
@com.aliyun.core.annotation.NameInMap("SwitchTime")
private String switchTime;
@com.aliyun.core.annotation.NameInMap("TargetInsName")
private String targetInsName;
@com.aliyun.core.annotation.NameInMap("TargetMajorVersion")
private String targetMajorVersion;
@com.aliyun.core.annotation.NameInMap("TaskId")
private Integer taskId;
@com.aliyun.core.annotation.NameInMap("UpgradeMode")
private String upgradeMode;
@com.aliyun.core.annotation.NameInMap("cutOver")
private Boolean cutOver;
@com.aliyun.core.annotation.NameInMap("totalLogicRepDelayTime")
private Integer totalLogicRepDelayTime;
@com.aliyun.core.annotation.NameInMap("totalLogicRepLatencyMB")
private Integer totalLogicRepLatencyMB;
@com.aliyun.core.annotation.NameInMap("zeroDownTimeConnectionString")
private String zeroDownTimeConnectionString;
@com.aliyun.core.annotation.NameInMap("zeroDownTimePort")
private Integer zeroDownTimePort;
private Items(Builder builder) {
this.collectStatMode = builder.collectStatMode;
this.detail = builder.detail;
this.endTime = builder.endTime;
this.result = builder.result;
this.sourceInsName = builder.sourceInsName;
this.sourceMajorVersion = builder.sourceMajorVersion;
this.startTime = builder.startTime;
this.switchEndTime = builder.switchEndTime;
this.switchTime = builder.switchTime;
this.targetInsName = builder.targetInsName;
this.targetMajorVersion = builder.targetMajorVersion;
this.taskId = builder.taskId;
this.upgradeMode = builder.upgradeMode;
this.cutOver = builder.cutOver;
this.totalLogicRepDelayTime = builder.totalLogicRepDelayTime;
this.totalLogicRepLatencyMB = builder.totalLogicRepLatencyMB;
this.zeroDownTimeConnectionString = builder.zeroDownTimeConnectionString;
this.zeroDownTimePort = builder.zeroDownTimePort;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return collectStatMode
*/
public String getCollectStatMode() {
return this.collectStatMode;
}
/**
* @return detail
*/
public String getDetail() {
return this.detail;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return result
*/
public String getResult() {
return this.result;
}
/**
* @return sourceInsName
*/
public String getSourceInsName() {
return this.sourceInsName;
}
/**
* @return sourceMajorVersion
*/
public String getSourceMajorVersion() {
return this.sourceMajorVersion;
}
/**
* @return startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return switchEndTime
*/
public String getSwitchEndTime() {
return this.switchEndTime;
}
/**
* @return switchTime
*/
public String getSwitchTime() {
return this.switchTime;
}
/**
* @return targetInsName
*/
public String getTargetInsName() {
return this.targetInsName;
}
/**
* @return targetMajorVersion
*/
public String getTargetMajorVersion() {
return this.targetMajorVersion;
}
/**
* @return taskId
*/
public Integer getTaskId() {
return this.taskId;
}
/**
* @return upgradeMode
*/
public String getUpgradeMode() {
return this.upgradeMode;
}
/**
* @return cutOver
*/
public Boolean getCutOver() {
return this.cutOver;
}
/**
* @return totalLogicRepDelayTime
*/
public Integer getTotalLogicRepDelayTime() {
return this.totalLogicRepDelayTime;
}
/**
* @return totalLogicRepLatencyMB
*/
public Integer getTotalLogicRepLatencyMB() {
return this.totalLogicRepLatencyMB;
}
/**
* @return zeroDownTimeConnectionString
*/
public String getZeroDownTimeConnectionString() {
return this.zeroDownTimeConnectionString;
}
/**
* @return zeroDownTimePort
*/
public Integer getZeroDownTimePort() {
return this.zeroDownTimePort;
}
public static final class Builder {
private String collectStatMode;
private String detail;
private String endTime;
private String result;
private String sourceInsName;
private String sourceMajorVersion;
private String startTime;
private String switchEndTime;
private String switchTime;
private String targetInsName;
private String targetMajorVersion;
private Integer taskId;
private String upgradeMode;
private Boolean cutOver;
private Integer totalLogicRepDelayTime;
private Integer totalLogicRepLatencyMB;
private String zeroDownTimeConnectionString;
private Integer zeroDownTimePort;
private Builder() {
}
private Builder(Items model) {
this.collectStatMode = model.collectStatMode;
this.detail = model.detail;
this.endTime = model.endTime;
this.result = model.result;
this.sourceInsName = model.sourceInsName;
this.sourceMajorVersion = model.sourceMajorVersion;
this.startTime = model.startTime;
this.switchEndTime = model.switchEndTime;
this.switchTime = model.switchTime;
this.targetInsName = model.targetInsName;
this.targetMajorVersion = model.targetMajorVersion;
this.taskId = model.taskId;
this.upgradeMode = model.upgradeMode;
this.cutOver = model.cutOver;
this.totalLogicRepDelayTime = model.totalLogicRepDelayTime;
this.totalLogicRepLatencyMB = model.totalLogicRepLatencyMB;
this.zeroDownTimeConnectionString = model.zeroDownTimeConnectionString;
this.zeroDownTimePort = model.zeroDownTimePort;
}
/**
* <p>The time when the system collects the statistics.</p>
* <p>Valid values:</p>
* <ul>
* <li><strong>After</strong>: The system collects the statistics after a switchover.</li>
* <li><strong>Before</strong>: The system collects the statistics before a switchover.</li>
* </ul>
*
* <strong>example:</strong>
* <p>After</p>
*/
public Builder collectStatMode(String collectStatMode) {
this.collectStatMode = collectStatMode;
return this;
}
/**
* <p>The details of the task.</p>
*
* <strong>example:</strong>
* <p>2021-10-27 15:03:05 --- do upgrade precheck on slave succcess.\n2021-10-27 15:03:11 --- begin to upgrade major version, source instance will locked in readonly mode.\n2021-10-27 15:03:21 --- upgrade master success.\n2021-10-27 15:06:10 --- exchange source and target instance dns success.\n</p>
*/
public Builder detail(String detail) {
this.detail = detail;
return this;
}
/**
* <p>The end time of the task.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1614237779000</p>
*/
public Builder endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* <p>The status of the task.</p>
* <ul>
* <li><strong>Success</strong>: The task is successful.</li>
* <li><strong>Failed</strong>: The task failed.</li>
* <li><strong>Running</strong>: The task is in the phase in which data is being migrated to a new instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Success</p>
*/
public Builder result(String result) {
this.result = result;
return this;
}
/**
* <p>The ID of the original instance.</p>
*
* <strong>example:</strong>
* <p>pgm-bp1i3kkq7321****</p>
*/
public Builder sourceInsName(String sourceInsName) {
this.sourceInsName = sourceInsName;
return this;
}
/**
* <p>The major engine version of the original instance.</p>
*
* <strong>example:</strong>
* <p>11.0</p>
*/
public Builder sourceMajorVersion(String sourceMajorVersion) {
this.sourceMajorVersion = sourceMajorVersion;
return this;
}
/**
* <p>The start time of the task.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1614236007000</p>
*/
public Builder startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* <p>The end time of the switching from the original instance to the new instance.</p>
* <p>Expressed in Unix timestamp. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1714237539000</p>
*/
public Builder switchEndTime(String switchEndTime) {
this.switchEndTime = switchEndTime;
return this;
}
/**
* <p>The time at which your workloads are switched over from the original instance to the new instance.</p>
* <p>This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. Unit: milliseconds.</p>
*
* <strong>example:</strong>
* <p>1614237539000</p>
*/
public Builder switchTime(String switchTime) {
this.switchTime = switchTime;
return this;
}
/**
* <p>The ID of the new instance.</p>
*
* <strong>example:</strong>
* <p>pgm-bp1c0v6d8092****</p>
*/
public Builder targetInsName(String targetInsName) {
this.targetInsName = targetInsName;
return this;
}
/**
* <p>The major engine version of the new instance. Valid values:</p>
* <ul>
* <li><strong>10.0</strong></li>
* <li><strong>11.0</strong></li>
* <li><strong>12.0</strong></li>
* <li><strong>13.0</strong></li>
* <li><strong>14.0</strong></li>
* <li><strong>15.0</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>12.0</p>
*/
public Builder targetMajorVersion(String targetMajorVersion) {
this.targetMajorVersion = targetMajorVersion;
return this;
}
/**
* <p>The task ID.</p>
*
* <strong>example:</strong>
* <p>342900000</p>
*/
public Builder taskId(Integer taskId) {
this.taskId = taskId;
return this;
}
/**
* <p>The upgrade mode.</p>
* <p>Valid values:</p>
* <ul>
* <li><strong>clone</strong>: The system does not migrate data to the new instance and does not switch your workloads over to the new instance.</li>
* <li><strong>switch</strong>: The system migrates data to the new instance and switches your workloads over to the new instance.</li>
* </ul>
*
* <strong>example:</strong>
* <p>switch</p>
*/
public Builder upgradeMode(String upgradeMode) {
this.upgradeMode = upgradeMode;
return this;
}
/**
* cutOver.
*/
public Builder cutOver(Boolean cutOver) {
this.cutOver = cutOver;
return this;
}
/**
* totalLogicRepDelayTime.
*/
public Builder totalLogicRepDelayTime(Integer totalLogicRepDelayTime) {
this.totalLogicRepDelayTime = totalLogicRepDelayTime;
return this;
}
/**
* totalLogicRepLatencyMB.
*/
public Builder totalLogicRepLatencyMB(Integer totalLogicRepLatencyMB) {
this.totalLogicRepLatencyMB = totalLogicRepLatencyMB;
return this;
}
/**
* zeroDownTimeConnectionString.
*/
public Builder zeroDownTimeConnectionString(String zeroDownTimeConnectionString) {
this.zeroDownTimeConnectionString = zeroDownTimeConnectionString;
return this;
}
/**
* zeroDownTimePort.
*/
public Builder zeroDownTimePort(Integer zeroDownTimePort) {
this.zeroDownTimePort = zeroDownTimePort;
return this;
}
public Items build() {
return new Items(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeVSwitchListRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeVSwitchListRequest} extends {@link RequestModel}
*
* <p>DescribeVSwitchListRequest</p>
*/
public class DescribeVSwitchListRequest extends Request {
@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("VSwitchIds")
private java.util.List<String> vSwitchIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
private DescribeVSwitchListRequest(Builder builder) {
super(builder);
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.vSwitchIds = builder.vSwitchIds;
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeVSwitchListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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 vSwitchIds
*/
public java.util.List<String> getVSwitchIds() {
return this.vSwitchIds;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder extends Request.Builder<DescribeVSwitchListRequest, Builder> {
private String pageNumber;
private String pageSize;
private String regionId;
private java.util.List<String> vSwitchIds;
private String vpcId;
private Builder() {
super();
}
private Builder(DescribeVSwitchListRequest request) {
super(request);
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.vSwitchIds = request.vSwitchIds;
this.vpcId = request.vpcId;
}
/**
* PageNumber.
*/
public Builder pageNumber(String pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* PageSize.
*/
public Builder pageSize(String pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* VSwitchIds.
*/
public Builder vSwitchIds(java.util.List<String> vSwitchIds) {
this.putQueryParameter("VSwitchIds", vSwitchIds);
this.vSwitchIds = vSwitchIds;
return this;
}
/**
* VpcId.
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
@Override
public DescribeVSwitchListRequest build() {
return new DescribeVSwitchListRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeVSwitchListResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeVSwitchListResponse} extends {@link TeaModel}
*
* <p>DescribeVSwitchListResponse</p>
*/
public class DescribeVSwitchListResponse 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 DescribeVSwitchListResponseBody body;
private DescribeVSwitchListResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeVSwitchListResponse 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 DescribeVSwitchListResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeVSwitchListResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeVSwitchListResponseBody body);
@Override
DescribeVSwitchListResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeVSwitchListResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeVSwitchListResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeVSwitchListResponse 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(DescribeVSwitchListResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeVSwitchListResponse build() {
return new DescribeVSwitchListResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeVSwitchListResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeVSwitchListResponseBody} extends {@link TeaModel}
*
* <p>DescribeVSwitchListResponseBody</p>
*/
public class DescribeVSwitchListResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("VSwitches")
private java.util.List<VSwitches> vSwitches;
private DescribeVSwitchListResponseBody(Builder builder) {
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
this.vSwitches = builder.vSwitches;
}
public static Builder builder() {
return new Builder();
}
public static DescribeVSwitchListResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return vSwitches
*/
public java.util.List<VSwitches> getVSwitches() {
return this.vSwitches;
}
public static final class Builder {
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private java.util.List<VSwitches> vSwitches;
private Builder() {
}
private Builder(DescribeVSwitchListResponseBody model) {
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
this.vSwitches = model.vSwitches;
}
/**
* PageNumber.
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* PageSize.
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* RequestId.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* TotalCount.
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* VSwitches.
*/
public Builder vSwitches(java.util.List<VSwitches> vSwitches) {
this.vSwitches = vSwitches;
return this;
}
public DescribeVSwitchListResponseBody build() {
return new DescribeVSwitchListResponseBody(this);
}
}
/**
*
* {@link DescribeVSwitchListResponseBody} extends {@link TeaModel}
*
* <p>DescribeVSwitchListResponseBody</p>
*/
public static class VSwitches extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AvailableIpAddressCount")
private String availableIpAddressCount;
@com.aliyun.core.annotation.NameInMap("CidrBlock")
private String cidrBlock;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private String gmtCreate;
@com.aliyun.core.annotation.NameInMap("IsDefault")
private String isDefault;
@com.aliyun.core.annotation.NameInMap("IzNo")
private String izNo;
@com.aliyun.core.annotation.NameInMap("ShareType")
private String shareType;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VSwitchName")
private String vSwitchName;
private VSwitches(Builder builder) {
this.availableIpAddressCount = builder.availableIpAddressCount;
this.cidrBlock = builder.cidrBlock;
this.description = builder.description;
this.gmtCreate = builder.gmtCreate;
this.isDefault = builder.isDefault;
this.izNo = builder.izNo;
this.shareType = builder.shareType;
this.status = builder.status;
this.vSwitchId = builder.vSwitchId;
this.vSwitchName = builder.vSwitchName;
}
public static Builder builder() {
return new Builder();
}
public static VSwitches create() {
return builder().build();
}
/**
* @return availableIpAddressCount
*/
public String getAvailableIpAddressCount() {
return this.availableIpAddressCount;
}
/**
* @return cidrBlock
*/
public String getCidrBlock() {
return this.cidrBlock;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return gmtCreate
*/
public String getGmtCreate() {
return this.gmtCreate;
}
/**
* @return isDefault
*/
public String getIsDefault() {
return this.isDefault;
}
/**
* @return izNo
*/
public String getIzNo() {
return this.izNo;
}
/**
* @return shareType
*/
public String getShareType() {
return this.shareType;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vSwitchName
*/
public String getVSwitchName() {
return this.vSwitchName;
}
public static final class Builder {
private String availableIpAddressCount;
private String cidrBlock;
private String description;
private String gmtCreate;
private String isDefault;
private String izNo;
private String shareType;
private String status;
private String vSwitchId;
private String vSwitchName;
private Builder() {
}
private Builder(VSwitches model) {
this.availableIpAddressCount = model.availableIpAddressCount;
this.cidrBlock = model.cidrBlock;
this.description = model.description;
this.gmtCreate = model.gmtCreate;
this.isDefault = model.isDefault;
this.izNo = model.izNo;
this.shareType = model.shareType;
this.status = model.status;
this.vSwitchId = model.vSwitchId;
this.vSwitchName = model.vSwitchName;
}
/**
* AvailableIpAddressCount.
*/
public Builder availableIpAddressCount(String availableIpAddressCount) {
this.availableIpAddressCount = availableIpAddressCount;
return this;
}
/**
* CidrBlock.
*/
public Builder cidrBlock(String cidrBlock) {
this.cidrBlock = cidrBlock;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* GmtCreate.
*/
public Builder gmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* IsDefault.
*/
public Builder isDefault(String isDefault) {
this.isDefault = isDefault;
return this;
}
/**
* IzNo.
*/
public Builder izNo(String izNo) {
this.izNo = izNo;
return this;
}
/**
* ShareType.
*/
public Builder shareType(String shareType) {
this.shareType = shareType;
return this;
}
/**
* Status.
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* VSwitchId.
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* VSwitchName.
*/
public Builder vSwitchName(String vSwitchName) {
this.vSwitchName = vSwitchName;
return this;
}
public VSwitches build() {
return new VSwitches(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeVSwitchesRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeVSwitchesRequest} extends {@link RequestModel}
*
* <p>DescribeVSwitchesRequest</p>
*/
public class DescribeVSwitchesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DedicatedHostGroupId")
private String dedicatedHostGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VpcId")
private String vpcId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private DescribeVSwitchesRequest(Builder builder) {
super(builder);
this.dedicatedHostGroupId = builder.dedicatedHostGroupId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.securityToken = builder.securityToken;
this.vpcId = builder.vpcId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeVSwitchesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return dedicatedHostGroupId
*/
public String getDedicatedHostGroupId() {
return this.dedicatedHostGroupId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder extends Request.Builder<DescribeVSwitchesRequest, Builder> {
private String dedicatedHostGroupId;
private String ownerAccount;
private Long ownerId;
private Integer pageNumber;
private Integer pageSize;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String securityToken;
private String vpcId;
private String zoneId;
private Builder() {
super();
}
private Builder(DescribeVSwitchesRequest request) {
super(request);
this.dedicatedHostGroupId = request.dedicatedHostGroupId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.securityToken = request.securityToken;
this.vpcId = request.vpcId;
this.zoneId = request.zoneId;
}
/**
* <p>The dedicated cluster ID. You can call the DescribeDedicatedHostGroups operation to query the dedicated cluster ID. If you specify this parameter, the details of all VSwitches in the VPC to which the dedicated cluster belongs are returned.</p>
* <blockquote>
* <p> You must specify this parameter or the <strong>VpcId</strong> parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>dhg-7a9********</p>
*/
public Builder dedicatedHostGroupId(String dedicatedHostGroupId) {
this.putQueryParameter("DedicatedHostGroupId", dedicatedHostGroupId);
this.dedicatedHostGroupId = dedicatedHostGroupId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The number of the page to return. Default value: <strong>1</strong>.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries to return on each page. Valid values: <strong>1 to 50</strong>. Default value: <strong>30</strong>.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* <p>The region ID of the VSwitch. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The ID of the resource group.</p>
*
* <strong>example:</strong>
* <p>rg-bp67acfmxazb4p****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* <p>The ID of the VPC to which the vSwitch belongs.</p>
* <blockquote>
* <p>You must configure this parameter or <strong>DedicatedHostGroupId</strong>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>vpc-bp1opxu1zkhn**********</p>
*/
public Builder vpcId(String vpcId) {
this.putQueryParameter("VpcId", vpcId);
this.vpcId = vpcId;
return this;
}
/**
* <p>The ID of the zone to which the vSwitch belongs. You can call the DescribeAvailableZones operation to query zone IDs. If you specify this parameter, the query results are filtered based on the value of this parameter and only the details of the VSwitch that is deployed in the specified zone are returned.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-i</p>
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
@Override
public DescribeVSwitchesRequest build() {
return new DescribeVSwitchesRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeVSwitchesResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeVSwitchesResponse} extends {@link TeaModel}
*
* <p>DescribeVSwitchesResponse</p>
*/
public class DescribeVSwitchesResponse 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 DescribeVSwitchesResponseBody body;
private DescribeVSwitchesResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeVSwitchesResponse 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 DescribeVSwitchesResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeVSwitchesResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeVSwitchesResponseBody body);
@Override
DescribeVSwitchesResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeVSwitchesResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeVSwitchesResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeVSwitchesResponse 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(DescribeVSwitchesResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeVSwitchesResponse build() {
return new DescribeVSwitchesResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeVSwitchesResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeVSwitchesResponseBody} extends {@link TeaModel}
*
* <p>DescribeVSwitchesResponseBody</p>
*/
public class DescribeVSwitchesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("VSwitchs")
private java.util.List<VSwitchs> vSwitchs;
private DescribeVSwitchesResponseBody(Builder builder) {
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
this.vSwitchs = builder.vSwitchs;
}
public static Builder builder() {
return new Builder();
}
public static DescribeVSwitchesResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return vSwitchs
*/
public java.util.List<VSwitchs> getVSwitchs() {
return this.vSwitchs;
}
public static final class Builder {
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private java.util.List<VSwitchs> vSwitchs;
private Builder() {
}
private Builder(DescribeVSwitchesResponseBody model) {
this.pageNumber = model.pageNumber;
this.pageSize = model.pageSize;
this.requestId = model.requestId;
this.totalCount = model.totalCount;
this.vSwitchs = model.vSwitchs;
}
/**
* <p>The page number of the returned page.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* <p>The number of entries returned on each page. The value of this parameter is the same as the value of the <strong>PageSize</strong> parameter in the request parameters.</p>
*
* <strong>example:</strong>
* <p>30</p>
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>8A68AEA1-AFBD-53F8-9BBB-06555EAE5C0E</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>The total number of returned entries.</p>
*
* <strong>example:</strong>
* <p>2</p>
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* <p>Details of the vSwitches.</p>
*/
public Builder vSwitchs(java.util.List<VSwitchs> vSwitchs) {
this.vSwitchs = vSwitchs;
return this;
}
public DescribeVSwitchesResponseBody build() {
return new DescribeVSwitchesResponseBody(this);
}
}
/**
*
* {@link DescribeVSwitchesResponseBody} extends {@link TeaModel}
*
* <p>DescribeVSwitchesResponseBody</p>
*/
public static class VSwitchs extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AvailableIpAddressCount")
@com.aliyun.core.annotation.Validation(required = true)
private String availableIpAddressCount;
@com.aliyun.core.annotation.NameInMap("CidrBlock")
private String cidrBlock;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("IsDefault")
private Boolean isDefault;
@com.aliyun.core.annotation.NameInMap("IzNo")
private String izNo;
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
@com.aliyun.core.annotation.NameInMap("VSwitchId")
private String vSwitchId;
@com.aliyun.core.annotation.NameInMap("VSwitchName")
private String vSwitchName;
private VSwitchs(Builder builder) {
this.availableIpAddressCount = builder.availableIpAddressCount;
this.cidrBlock = builder.cidrBlock;
this.description = builder.description;
this.isDefault = builder.isDefault;
this.izNo = builder.izNo;
this.status = builder.status;
this.vSwitchId = builder.vSwitchId;
this.vSwitchName = builder.vSwitchName;
}
public static Builder builder() {
return new Builder();
}
public static VSwitchs create() {
return builder().build();
}
/**
* @return availableIpAddressCount
*/
public String getAvailableIpAddressCount() {
return this.availableIpAddressCount;
}
/**
* @return cidrBlock
*/
public String getCidrBlock() {
return this.cidrBlock;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return isDefault
*/
public Boolean getIsDefault() {
return this.isDefault;
}
/**
* @return izNo
*/
public String getIzNo() {
return this.izNo;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vSwitchName
*/
public String getVSwitchName() {
return this.vSwitchName;
}
public static final class Builder {
private String availableIpAddressCount;
private String cidrBlock;
private String description;
private Boolean isDefault;
private String izNo;
private String status;
private String vSwitchId;
private String vSwitchName;
private Builder() {
}
private Builder(VSwitchs model) {
this.availableIpAddressCount = model.availableIpAddressCount;
this.cidrBlock = model.cidrBlock;
this.description = model.description;
this.isDefault = model.isDefault;
this.izNo = model.izNo;
this.status = model.status;
this.vSwitchId = model.vSwitchId;
this.vSwitchName = model.vSwitchName;
}
/**
* <p>The number of available IP addresses in the vSwitch.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
public Builder availableIpAddressCount(String availableIpAddressCount) {
this.availableIpAddressCount = availableIpAddressCount;
return this;
}
/**
* <p>The CIDR block of the vSwitch.</p>
*
* <strong>example:</strong>
* <p>172.16.0.0/24</p>
*/
public Builder cidrBlock(String cidrBlock) {
this.cidrBlock = cidrBlock;
return this;
}
/**
* <p>The description of the vSwitch.</p>
*
* <strong>example:</strong>
* <p>vSwitchDescription</p>
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* <p>Indicates whether the vSwitch is the default vSwitch. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder isDefault(Boolean isDefault) {
this.isDefault = isDefault;
return this;
}
/**
* <p>The ID of the zone to which the vSwitch belongs.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou-h</p>
*/
public Builder izNo(String izNo) {
this.izNo = izNo;
return this;
}
/**
* <p>The status of the vSwitch. Valid values:</p>
* <ul>
* <li><strong>Pending</strong>: The vSwitch is being specified.</li>
* <li><strong>Available</strong>: The vSwitch is available.</li>
* </ul>
*
* <strong>example:</strong>
* <p>Available</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* <p>The vSwitch ID.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1pnaz94xc**********</p>
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* <p>The vSwitch name.</p>
*
* <strong>example:</strong>
* <p>test</p>
*/
public Builder vSwitchName(String vSwitchName) {
this.vSwitchName = vSwitchName;
return this;
}
public VSwitchs build() {
return new VSwitchs(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeWhitelistTemplateLinkedInstanceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeWhitelistTemplateLinkedInstanceRequest} extends {@link RequestModel}
*
* <p>DescribeWhitelistTemplateLinkedInstanceRequest</p>
*/
public class DescribeWhitelistTemplateLinkedInstanceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("TemplateId")
@com.aliyun.core.annotation.Validation(required = true)
private Integer templateId;
private DescribeWhitelistTemplateLinkedInstanceRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWhitelistTemplateLinkedInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return templateId
*/
public Integer getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder<DescribeWhitelistTemplateLinkedInstanceRequest, Builder> {
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Integer templateId;
private Builder() {
super();
}
private Builder(DescribeWhitelistTemplateLinkedInstanceRequest request) {
super(request);
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.templateId = request.templateId;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID. You can leave this parameter empty.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the whitelist template. You can call the DescribeAllWhitelistTemplate operation to obtain the ID of the whitelist template.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>412</p>
*/
public Builder templateId(Integer templateId) {
this.putBodyParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public DescribeWhitelistTemplateLinkedInstanceRequest build() {
return new DescribeWhitelistTemplateLinkedInstanceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeWhitelistTemplateLinkedInstanceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeWhitelistTemplateLinkedInstanceResponse} extends {@link TeaModel}
*
* <p>DescribeWhitelistTemplateLinkedInstanceResponse</p>
*/
public class DescribeWhitelistTemplateLinkedInstanceResponse 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 DescribeWhitelistTemplateLinkedInstanceResponseBody body;
private DescribeWhitelistTemplateLinkedInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeWhitelistTemplateLinkedInstanceResponse 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 DescribeWhitelistTemplateLinkedInstanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeWhitelistTemplateLinkedInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeWhitelistTemplateLinkedInstanceResponseBody body);
@Override
DescribeWhitelistTemplateLinkedInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeWhitelistTemplateLinkedInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeWhitelistTemplateLinkedInstanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeWhitelistTemplateLinkedInstanceResponse 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(DescribeWhitelistTemplateLinkedInstanceResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeWhitelistTemplateLinkedInstanceResponse build() {
return new DescribeWhitelistTemplateLinkedInstanceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeWhitelistTemplateLinkedInstanceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeWhitelistTemplateLinkedInstanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeWhitelistTemplateLinkedInstanceResponseBody</p>
*/
public class DescribeWhitelistTemplateLinkedInstanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private DescribeWhitelistTemplateLinkedInstanceResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWhitelistTemplateLinkedInstanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(DescribeWhitelistTemplateLinkedInstanceResponseBody model) {
this.code = model.code;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The response code returned. Valid values:</p>
* <ul>
* <li><strong>200</strong>: success</li>
* <li><strong>400</strong>: client error</li>
* <li><strong>401</strong>: identity authentication failed</li>
* <li><strong>404</strong>: request page not found</li>
* <li><strong>500</strong>: server error</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code returned. Valid values:</p>
* <ul>
* <li><strong>200</strong>: success</li>
* <li><strong>400</strong>: client error</li>
* <li><strong>500</strong>: server error</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>Successful</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>9F8C06AD-3F37-57A0-ABBF-ABD7824F55CE</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request is successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public DescribeWhitelistTemplateLinkedInstanceResponseBody build() {
return new DescribeWhitelistTemplateLinkedInstanceResponseBody(this);
}
}
/**
*
* {@link DescribeWhitelistTemplateLinkedInstanceResponseBody} extends {@link TeaModel}
*
* <p>DescribeWhitelistTemplateLinkedInstanceResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InsName")
private java.util.List<String> insName;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private Integer templateId;
private Data(Builder builder) {
this.insName = builder.insName;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return insName
*/
public java.util.List<String> getInsName() {
return this.insName;
}
/**
* @return templateId
*/
public Integer getTemplateId() {
return this.templateId;
}
public static final class Builder {
private java.util.List<String> insName;
private Integer templateId;
private Builder() {
}
private Builder(Data model) {
this.insName = model.insName;
this.templateId = model.templateId;
}
/**
* <p>The information about the instance.</p>
*/
public Builder insName(java.util.List<String> insName) {
this.insName = insName;
return this;
}
/**
* <p>The ID of the whitelist template.</p>
*
* <strong>example:</strong>
* <p>412</p>
*/
public Builder templateId(Integer templateId) {
this.templateId = templateId;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeWhitelistTemplateRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeWhitelistTemplateRequest} extends {@link RequestModel}
*
* <p>DescribeWhitelistTemplateRequest</p>
*/
public class DescribeWhitelistTemplateRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateId")
@com.aliyun.core.annotation.Validation(required = true)
private Integer templateId;
private DescribeWhitelistTemplateRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWhitelistTemplateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return templateId
*/
public Integer getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder<DescribeWhitelistTemplateRequest, Builder> {
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Integer templateId;
private Builder() {
super();
}
private Builder(DescribeWhitelistTemplateRequest request) {
super(request);
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.templateId = request.templateId;
}
/**
* <p>The region ID. You can call the <a href="https://help.aliyun.com/document_detail/26243.html">DescribeRegions</a> operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the whitelist template. You can call the <a href="https://help.aliyun.com/document_detail/2412075.html">DescribeAllWhitelistTemplate</a> operation to obtain the ID of the whitelist template.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>1012</p>
*/
public Builder templateId(Integer templateId) {
this.putQueryParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public DescribeWhitelistTemplateRequest build() {
return new DescribeWhitelistTemplateRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeWhitelistTemplateResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeWhitelistTemplateResponse} extends {@link TeaModel}
*
* <p>DescribeWhitelistTemplateResponse</p>
*/
public class DescribeWhitelistTemplateResponse 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 DescribeWhitelistTemplateResponseBody body;
private DescribeWhitelistTemplateResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DescribeWhitelistTemplateResponse 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 DescribeWhitelistTemplateResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DescribeWhitelistTemplateResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DescribeWhitelistTemplateResponseBody body);
@Override
DescribeWhitelistTemplateResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DescribeWhitelistTemplateResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DescribeWhitelistTemplateResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DescribeWhitelistTemplateResponse 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(DescribeWhitelistTemplateResponseBody body) {
this.body = body;
return this;
}
@Override
public DescribeWhitelistTemplateResponse build() {
return new DescribeWhitelistTemplateResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DescribeWhitelistTemplateResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeWhitelistTemplateResponseBody} extends {@link TeaModel}
*
* <p>DescribeWhitelistTemplateResponseBody</p>
*/
public class DescribeWhitelistTemplateResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private DescribeWhitelistTemplateResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static DescribeWhitelistTemplateResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(DescribeWhitelistTemplateResponseBody model) {
this.code = model.code;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The response code returned. Valid values:</p>
* <ul>
* <li><strong>200</strong>: success</li>
* <li><strong>400</strong>: client error</li>
* <li><strong>401</strong>: identity authentication failed</li>
* <li><strong>404</strong>: request page not found</li>
* <li><strong>500</strong>: server error</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code returned. Valid values:</p>
* <ul>
* <li><strong>200</strong>: success</li>
* <li><strong>400</strong>: client error</li>
* <li><strong>500</strong>: server error</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The response parameters.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>ED169A3E-1657-4104-82AB-24EA8CD0DB75</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request is successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public DescribeWhitelistTemplateResponseBody build() {
return new DescribeWhitelistTemplateResponseBody(this);
}
}
/**
*
* {@link DescribeWhitelistTemplateResponseBody} extends {@link TeaModel}
*
* <p>DescribeWhitelistTemplateResponseBody</p>
*/
public static class Template extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Id")
private Integer id;
@com.aliyun.core.annotation.NameInMap("Ips")
private String ips;
@com.aliyun.core.annotation.NameInMap("TemplateId")
private Integer templateId;
@com.aliyun.core.annotation.NameInMap("TemplateName")
private String templateName;
@com.aliyun.core.annotation.NameInMap("UserId")
private Integer userId;
private Template(Builder builder) {
this.id = builder.id;
this.ips = builder.ips;
this.templateId = builder.templateId;
this.templateName = builder.templateName;
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static Template create() {
return builder().build();
}
/**
* @return id
*/
public Integer getId() {
return this.id;
}
/**
* @return ips
*/
public String getIps() {
return this.ips;
}
/**
* @return templateId
*/
public Integer getTemplateId() {
return this.templateId;
}
/**
* @return templateName
*/
public String getTemplateName() {
return this.templateName;
}
/**
* @return userId
*/
public Integer getUserId() {
return this.userId;
}
public static final class Builder {
private Integer id;
private String ips;
private Integer templateId;
private String templateName;
private Integer userId;
private Builder() {
}
private Builder(Template model) {
this.id = model.id;
this.ips = model.ips;
this.templateId = model.templateId;
this.templateName = model.templateName;
this.userId = model.userId;
}
/**
* <p>The primary key of the data table.</p>
*
* <strong>example:</strong>
* <p>1013</p>
*/
public Builder id(Integer id) {
this.id = id;
return this;
}
/**
* <p>The IP addresses.</p>
*
* <strong>example:</strong>
* <p>10.1.X.X,2.3.X.X</p>
*/
public Builder ips(String ips) {
this.ips = ips;
return this;
}
/**
* <p>The ID of the whitelist template.</p>
*
* <strong>example:</strong>
* <p>424</p>
*/
public Builder templateId(Integer templateId) {
this.templateId = templateId;
return this;
}
/**
* <p>The name of the IP whitelist template.</p>
*
* <strong>example:</strong>
* <p>template_123</p>
*/
public Builder templateName(String templateName) {
this.templateName = templateName;
return this;
}
/**
* <p>The user ID.</p>
*
* <strong>example:</strong>
* <p>16****</p>
*/
public Builder userId(Integer userId) {
this.userId = userId;
return this;
}
public Template build() {
return new Template(this);
}
}
}
/**
*
* {@link DescribeWhitelistTemplateResponseBody} extends {@link TeaModel}
*
* <p>DescribeWhitelistTemplateResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Template")
private Template template;
private Data(Builder builder) {
this.template = builder.template;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return template
*/
public Template getTemplate() {
return this.template;
}
public static final class Builder {
private Template template;
private Builder() {
}
private Builder(Data model) {
this.template = model.template;
}
/**
* <p>The information about the IP whitelist template.</p>
*/
public Builder template(Template template) {
this.template = template;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DestroyDBInstanceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DestroyDBInstanceRequest} extends {@link RequestModel}
*
* <p>DestroyDBInstanceRequest</p>
*/
public class DestroyDBInstanceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ClientToken")
private String clientToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerAccount")
private String ownerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private DestroyDBInstanceRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBInstanceId = builder.DBInstanceId;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static DestroyDBInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<DestroyDBInstanceRequest, Builder> {
private String clientToken;
private String DBInstanceId;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(DestroyDBInstanceRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBInstanceId = request.DBInstanceId;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The client token that is used to ensure the idempotence of the request.</p>
* <blockquote>
* <p>You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>ETnLKlblzczshOTUbOCziJZNwH****</p>
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* <p>The ID of the instance. You can call the <a href="https://help.aliyun.com/document_detail/26232.html">DescribeDBInstances</a> operation to query the ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5xxxxxxxxxx</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public DestroyDBInstanceRequest build() {
return new DestroyDBInstanceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DestroyDBInstanceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DestroyDBInstanceResponse} extends {@link TeaModel}
*
* <p>DestroyDBInstanceResponse</p>
*/
public class DestroyDBInstanceResponse 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 DestroyDBInstanceResponseBody body;
private DestroyDBInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DestroyDBInstanceResponse 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 DestroyDBInstanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DestroyDBInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DestroyDBInstanceResponseBody body);
@Override
DestroyDBInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DestroyDBInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DestroyDBInstanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DestroyDBInstanceResponse 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(DestroyDBInstanceResponseBody body) {
this.body = body;
return this;
}
@Override
public DestroyDBInstanceResponse build() {
return new DestroyDBInstanceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DestroyDBInstanceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DestroyDBInstanceResponseBody} extends {@link TeaModel}
*
* <p>DestroyDBInstanceResponseBody</p>
*/
public class DestroyDBInstanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DestroyDBInstanceResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DestroyDBInstanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(DestroyDBInstanceResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>65BDA532-28AF-4122-AA39-B382721EEE64</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DestroyDBInstanceResponseBody build() {
return new DestroyDBInstanceResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DetachGadInstanceMemberRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachGadInstanceMemberRequest} extends {@link RequestModel}
*
* <p>DetachGadInstanceMemberRequest</p>
*/
public class DetachGadInstanceMemberRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("GadInstanceName")
@com.aliyun.core.annotation.Validation(required = true)
private String gadInstanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("MemberInstanceName")
@com.aliyun.core.annotation.Validation(required = true)
private String memberInstanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
private DetachGadInstanceMemberRequest(Builder builder) {
super(builder);
this.gadInstanceName = builder.gadInstanceName;
this.memberInstanceName = builder.memberInstanceName;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
}
public static Builder builder() {
return new Builder();
}
public static DetachGadInstanceMemberRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return gadInstanceName
*/
public String getGadInstanceName() {
return this.gadInstanceName;
}
/**
* @return memberInstanceName
*/
public String getMemberInstanceName() {
return this.memberInstanceName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
public static final class Builder extends Request.Builder<DetachGadInstanceMemberRequest, Builder> {
private String gadInstanceName;
private String memberInstanceName;
private String regionId;
private String resourceGroupId;
private Builder() {
super();
}
private Builder(DetachGadInstanceMemberRequest request) {
super(request);
this.gadInstanceName = request.gadInstanceName;
this.memberInstanceName = request.memberInstanceName;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
}
/**
* <p>The ID of the global active database cluster.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>gad-rm-bp1npi2j8********</p>
*/
public Builder gadInstanceName(String gadInstanceName) {
this.putQueryParameter("GadInstanceName", gadInstanceName);
this.gadInstanceName = gadInstanceName;
return this;
}
/**
* <p>The ID of the instance that serves as the unit node you want to remove. You can call the DescribeGadInstances query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-bp1npi2j8********</p>
*/
public Builder memberInstanceName(String memberInstanceName) {
this.putQueryParameter("MemberInstanceName", memberInstanceName);
this.memberInstanceName = memberInstanceName;
return this;
}
/**
* <p>The region ID of the central node. You can call the DescribeGadInstances operation to query the region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID. You can call the DescribeDBInstanceAttribute operation to query the resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-acfmy*****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
@Override
public DetachGadInstanceMemberRequest build() {
return new DetachGadInstanceMemberRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DetachGadInstanceMemberResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachGadInstanceMemberResponse} extends {@link TeaModel}
*
* <p>DetachGadInstanceMemberResponse</p>
*/
public class DetachGadInstanceMemberResponse 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 DetachGadInstanceMemberResponseBody body;
private DetachGadInstanceMemberResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DetachGadInstanceMemberResponse 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 DetachGadInstanceMemberResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DetachGadInstanceMemberResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DetachGadInstanceMemberResponseBody body);
@Override
DetachGadInstanceMemberResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DetachGadInstanceMemberResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DetachGadInstanceMemberResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DetachGadInstanceMemberResponse 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(DetachGadInstanceMemberResponseBody body) {
this.body = body;
return this;
}
@Override
public DetachGadInstanceMemberResponse build() {
return new DetachGadInstanceMemberResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DetachGadInstanceMemberResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachGadInstanceMemberResponseBody} extends {@link TeaModel}
*
* <p>DetachGadInstanceMemberResponseBody</p>
*/
public class DetachGadInstanceMemberResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DetachGadInstanceMemberResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DetachGadInstanceMemberResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(DetachGadInstanceMemberResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>65BDA532-28AF-4122-AA39-B382721EEE64</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DetachGadInstanceMemberResponseBody build() {
return new DetachGadInstanceMemberResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DetachRCDiskRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachRCDiskRequest} extends {@link RequestModel}
*
* <p>DetachRCDiskRequest</p>
*/
public class DetachRCDiskRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DeleteWithInstance")
private Boolean deleteWithInstance;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DiskId")
@com.aliyun.core.annotation.Validation(required = true)
private String diskId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
private DetachRCDiskRequest(Builder builder) {
super(builder);
this.deleteWithInstance = builder.deleteWithInstance;
this.diskId = builder.diskId;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static DetachRCDiskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return deleteWithInstance
*/
public Boolean getDeleteWithInstance() {
return this.deleteWithInstance;
}
/**
* @return diskId
*/
public String getDiskId() {
return this.diskId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<DetachRCDiskRequest, Builder> {
private Boolean deleteWithInstance;
private String diskId;
private String instanceId;
private String regionId;
private Builder() {
super();
}
private Builder(DetachRCDiskRequest request) {
super(request);
this.deleteWithInstance = request.deleteWithInstance;
this.diskId = request.diskId;
this.instanceId = request.instanceId;
this.regionId = request.regionId;
}
/**
* <p>The reserved parameter. This parameter is not supported.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder deleteWithInstance(Boolean deleteWithInstance) {
this.putQueryParameter("DeleteWithInstance", deleteWithInstance);
this.deleteWithInstance = deleteWithInstance;
return this;
}
/**
* <p>The ID of the disk that you want to detach.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rcd-f8zh55g5gbk1byjr****</p>
*/
public Builder diskId(String diskId) {
this.putQueryParameter("DiskId", diskId);
this.diskId = diskId;
return this;
}
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rc-dh2jf9n6j4s14926****</p>
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public DetachRCDiskRequest build() {
return new DetachRCDiskRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DetachRCDiskResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachRCDiskResponse} extends {@link TeaModel}
*
* <p>DetachRCDiskResponse</p>
*/
public class DetachRCDiskResponse 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 DetachRCDiskResponseBody body;
private DetachRCDiskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DetachRCDiskResponse 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 DetachRCDiskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DetachRCDiskResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DetachRCDiskResponseBody body);
@Override
DetachRCDiskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DetachRCDiskResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DetachRCDiskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DetachRCDiskResponse 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(DetachRCDiskResponseBody body) {
this.body = body;
return this;
}
@Override
public DetachRCDiskResponse build() {
return new DetachRCDiskResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DetachRCDiskResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachRCDiskResponseBody} extends {@link TeaModel}
*
* <p>DetachRCDiskResponseBody</p>
*/
public class DetachRCDiskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private DetachRCDiskResponseBody(Builder builder) {
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DetachRCDiskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String requestId;
private Builder() {
}
private Builder(DetachRCDiskResponseBody model) {
this.requestId = model.requestId;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>C8E88DED-533F-4B3C-9207-731FBF394CCA</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DetachRCDiskResponseBody build() {
return new DetachRCDiskResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DetachWhitelistTemplateToInstanceRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachWhitelistTemplateToInstanceRequest} extends {@link RequestModel}
*
* <p>DetachWhitelistTemplateToInstanceRequest</p>
*/
public class DetachWhitelistTemplateToInstanceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InsName")
@com.aliyun.core.annotation.Validation(required = true)
private String insName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateId")
@com.aliyun.core.annotation.Validation(required = true)
private Integer templateId;
private DetachWhitelistTemplateToInstanceRequest(Builder builder) {
super(builder);
this.insName = builder.insName;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static DetachWhitelistTemplateToInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return insName
*/
public String getInsName() {
return this.insName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return templateId
*/
public Integer getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder<DetachWhitelistTemplateToInstanceRequest, Builder> {
private String insName;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Integer templateId;
private Builder() {
super();
}
private Builder(DetachWhitelistTemplateToInstanceRequest request) {
super(request);
this.insName = request.insName;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.templateId = request.templateId;
}
/**
* <p>The instance name.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-bp191w771k******</p>
*/
public Builder insName(String insName) {
this.putQueryParameter("InsName", insName);
this.insName = insName;
return this;
}
/**
* <p>The region ID.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID. For more information about resource groups, see Resource groups.</p>
*
* <strong>example:</strong>
* <p>rg-acfmz3kjr******</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The ID of the whitelist template. You can call the DescribeAllWhitelistTemplate operation to obtain the ID of the whitelist template.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>412</p>
*/
public Builder templateId(Integer templateId) {
this.putQueryParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public DetachWhitelistTemplateToInstanceRequest build() {
return new DetachWhitelistTemplateToInstanceRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DetachWhitelistTemplateToInstanceResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachWhitelistTemplateToInstanceResponse} extends {@link TeaModel}
*
* <p>DetachWhitelistTemplateToInstanceResponse</p>
*/
public class DetachWhitelistTemplateToInstanceResponse 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 DetachWhitelistTemplateToInstanceResponseBody body;
private DetachWhitelistTemplateToInstanceResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static DetachWhitelistTemplateToInstanceResponse 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 DetachWhitelistTemplateToInstanceResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<DetachWhitelistTemplateToInstanceResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(DetachWhitelistTemplateToInstanceResponseBody body);
@Override
DetachWhitelistTemplateToInstanceResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<DetachWhitelistTemplateToInstanceResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private DetachWhitelistTemplateToInstanceResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(DetachWhitelistTemplateToInstanceResponse 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(DetachWhitelistTemplateToInstanceResponseBody body) {
this.body = body;
return this;
}
@Override
public DetachWhitelistTemplateToInstanceResponse build() {
return new DetachWhitelistTemplateToInstanceResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/DetachWhitelistTemplateToInstanceResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DetachWhitelistTemplateToInstanceResponseBody} extends {@link TeaModel}
*
* <p>DetachWhitelistTemplateToInstanceResponseBody</p>
*/
public class DetachWhitelistTemplateToInstanceResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("HttpStatusCode")
private Integer httpStatusCode;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Success")
private Boolean success;
private DetachWhitelistTemplateToInstanceResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.httpStatusCode = builder.httpStatusCode;
this.message = builder.message;
this.requestId = builder.requestId;
this.success = builder.success;
}
public static Builder builder() {
return new Builder();
}
public static DetachWhitelistTemplateToInstanceResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return httpStatusCode
*/
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return success
*/
public Boolean getSuccess() {
return this.success;
}
public static final class Builder {
private String code;
private Data data;
private Integer httpStatusCode;
private String message;
private String requestId;
private Boolean success;
private Builder() {
}
private Builder(DetachWhitelistTemplateToInstanceResponseBody model) {
this.code = model.code;
this.data = model.data;
this.httpStatusCode = model.httpStatusCode;
this.message = model.message;
this.requestId = model.requestId;
this.success = model.success;
}
/**
* <p>The response code. Valid values:</p>
* <ul>
* <li><strong>200</strong>: success</li>
* <li><strong>400</strong>: client error</li>
* <li><strong>401</strong>: identity authentication failed</li>
* <li><strong>404</strong>: request page not found</li>
* <li><strong>500</strong>: server error</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The data returned.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>The HTTP status code returned. Valid values:</p>
* <ul>
* <li><strong>200</strong>: success</li>
* <li><strong>400</strong>: client error</li>
* <li><strong>500</strong>: server error</li>
* </ul>
*
* <strong>example:</strong>
* <p>200</p>
*/
public Builder httpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
return this;
}
/**
* <p>The response parameters.</p>
*
* <strong>example:</strong>
* <p>success</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>224DB9F7-3100-4899-AB9C-C938BCCB43E7</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* <p>Indicates whether the request is successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
public Builder success(Boolean success) {
this.success = success;
return this;
}
public DetachWhitelistTemplateToInstanceResponseBody build() {
return new DetachWhitelistTemplateToInstanceResponseBody(this);
}
}
/**
*
* {@link DetachWhitelistTemplateToInstanceResponseBody} extends {@link TeaModel}
*
* <p>DetachWhitelistTemplateToInstanceResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Status")
private String status;
private Data(Builder builder) {
this.status = builder.status;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
public static final class Builder {
private String status;
private Builder() {
}
private Builder(Data model) {
this.status = model.status;
}
/**
* <p>The status code returned. Valid values:</p>
* <ul>
* <li><strong>ok</strong>: The request is successful.</li>
* <li><strong>error</strong>: The request fails.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ok</p>
*/
public Builder status(String status) {
this.status = status;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/EvaluateLocalExtendDiskRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EvaluateLocalExtendDiskRequest} extends {@link RequestModel}
*
* <p>EvaluateLocalExtendDiskRequest</p>
*/
public class EvaluateLocalExtendDiskRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Storage")
private Integer storage;
private EvaluateLocalExtendDiskRequest(Builder builder) {
super(builder);
this.DBInstanceName = builder.DBInstanceName;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.storage = builder.storage;
}
public static Builder builder() {
return new Builder();
}
public static EvaluateLocalExtendDiskRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return storage
*/
public Integer getStorage() {
return this.storage;
}
public static final class Builder extends Request.Builder<EvaluateLocalExtendDiskRequest, Builder> {
private String DBInstanceName;
private Long ownerId;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Integer storage;
private Builder() {
super();
}
private Builder(EvaluateLocalExtendDiskRequest request) {
super(request);
this.DBInstanceName = request.DBInstanceName;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.storage = request.storage;
}
/**
* <p>The instance name.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-m5e999iqm65******</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.putQueryParameter("DBInstanceName", DBInstanceName);
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* <p>The region ID. You can call the <a href="https://help.aliyun.com/document_detail/26243.html">DescribeRegions</a> operation to query the most recent region list.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* <p>The resource group ID.</p>
*
* <strong>example:</strong>
* <p>rg-ac****</p>
*/
public Builder resourceGroupId(String resourceGroupId) {
this.putQueryParameter("ResourceGroupId", resourceGroupId);
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* <p>The new storage capacity. Unit: GB.</p>
*
* <strong>example:</strong>
* <p>1000</p>
*/
public Builder storage(Integer storage) {
this.putQueryParameter("Storage", storage);
this.storage = storage;
return this;
}
@Override
public EvaluateLocalExtendDiskRequest build() {
return new EvaluateLocalExtendDiskRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/EvaluateLocalExtendDiskResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EvaluateLocalExtendDiskResponse} extends {@link TeaModel}
*
* <p>EvaluateLocalExtendDiskResponse</p>
*/
public class EvaluateLocalExtendDiskResponse 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 EvaluateLocalExtendDiskResponseBody body;
private EvaluateLocalExtendDiskResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static EvaluateLocalExtendDiskResponse 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 EvaluateLocalExtendDiskResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<EvaluateLocalExtendDiskResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(EvaluateLocalExtendDiskResponseBody body);
@Override
EvaluateLocalExtendDiskResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<EvaluateLocalExtendDiskResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private EvaluateLocalExtendDiskResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(EvaluateLocalExtendDiskResponse 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(EvaluateLocalExtendDiskResponseBody body) {
this.body = body;
return this;
}
@Override
public EvaluateLocalExtendDiskResponse build() {
return new EvaluateLocalExtendDiskResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/EvaluateLocalExtendDiskResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link EvaluateLocalExtendDiskResponseBody} extends {@link TeaModel}
*
* <p>EvaluateLocalExtendDiskResponseBody</p>
*/
public class EvaluateLocalExtendDiskResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Available")
private String available;
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
private String DBInstanceId;
@com.aliyun.core.annotation.NameInMap("DBInstanceTransType")
private String DBInstanceTransType;
@com.aliyun.core.annotation.NameInMap("LocalUpgradeDiskLimit")
private Long localUpgradeDiskLimit;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private EvaluateLocalExtendDiskResponseBody(Builder builder) {
this.available = builder.available;
this.DBInstanceId = builder.DBInstanceId;
this.DBInstanceTransType = builder.DBInstanceTransType;
this.localUpgradeDiskLimit = builder.localUpgradeDiskLimit;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static EvaluateLocalExtendDiskResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return available
*/
public String getAvailable() {
return this.available;
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return DBInstanceTransType
*/
public String getDBInstanceTransType() {
return this.DBInstanceTransType;
}
/**
* @return localUpgradeDiskLimit
*/
public Long getLocalUpgradeDiskLimit() {
return this.localUpgradeDiskLimit;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String available;
private String DBInstanceId;
private String DBInstanceTransType;
private Long localUpgradeDiskLimit;
private String requestId;
private Builder() {
}
private Builder(EvaluateLocalExtendDiskResponseBody model) {
this.available = model.available;
this.DBInstanceId = model.DBInstanceId;
this.DBInstanceTransType = model.DBInstanceTransType;
this.localUpgradeDiskLimit = model.localUpgradeDiskLimit;
this.requestId = model.requestId;
}
/**
* <p>Indicates whether the instance is available. Valid values: true and false.</p>
*
* <strong>example:</strong>
* <p>True</p>
*/
public Builder available(String available) {
this.available = available;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-bp1375i66nd******</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* <p>The data transfer type supported by the instance.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
public Builder DBInstanceTransType(String DBInstanceTransType) {
this.DBInstanceTransType = DBInstanceTransType;
return this;
}
/**
* <p>The maximum value of the local disk. Unit: GB.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
public Builder localUpgradeDiskLimit(Long localUpgradeDiskLimit) {
this.localUpgradeDiskLimit = localUpgradeDiskLimit;
return this;
}
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>A4C4D26F-E5CE-5A28-8C54-46A6FB318223</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public EvaluateLocalExtendDiskResponseBody build() {
return new EvaluateLocalExtendDiskResponseBody(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/GetDBInstanceTopologyRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDBInstanceTopologyRequest} extends {@link RequestModel}
*
* <p>GetDBInstanceTopologyRequest</p>
*/
public class GetDBInstanceTopologyRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private GetDBInstanceTopologyRequest(Builder builder) {
super(builder);
this.DBInstanceId = builder.DBInstanceId;
this.ownerId = builder.ownerId;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static GetDBInstanceTopologyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBInstanceId
*/
public String getDBInstanceId() {
return this.DBInstanceId;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder<GetDBInstanceTopologyRequest, Builder> {
private String DBInstanceId;
private Long ownerId;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(GetDBInstanceTopologyRequest request) {
super(request);
this.DBInstanceId = request.DBInstanceId;
this.ownerId = request.ownerId;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-uf6wjk5*******</p>
*/
public Builder DBInstanceId(String DBInstanceId) {
this.putQueryParameter("DBInstanceId", DBInstanceId);
this.DBInstanceId = DBInstanceId;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public GetDBInstanceTopologyRequest build() {
return new GetDBInstanceTopologyRequest(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/GetDBInstanceTopologyResponse.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDBInstanceTopologyResponse} extends {@link TeaModel}
*
* <p>GetDBInstanceTopologyResponse</p>
*/
public class GetDBInstanceTopologyResponse 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 GetDBInstanceTopologyResponseBody body;
private GetDBInstanceTopologyResponse(BuilderImpl builder) {
super(builder);
this.headers = builder.headers;
this.statusCode = builder.statusCode;
this.body = builder.body;
}
public static GetDBInstanceTopologyResponse 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 GetDBInstanceTopologyResponseBody getBody() {
return this.body;
}
public interface Builder extends Response.Builder<GetDBInstanceTopologyResponse, Builder> {
Builder headers(java.util.Map<String, String> headers);
Builder statusCode(Integer statusCode);
Builder body(GetDBInstanceTopologyResponseBody body);
@Override
GetDBInstanceTopologyResponse build();
}
private static final class BuilderImpl
extends Response.BuilderImpl<GetDBInstanceTopologyResponse, Builder>
implements Builder {
private java.util.Map<String, String> headers;
private Integer statusCode;
private GetDBInstanceTopologyResponseBody body;
private BuilderImpl() {
super();
}
private BuilderImpl(GetDBInstanceTopologyResponse 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(GetDBInstanceTopologyResponseBody body) {
this.body = body;
return this;
}
@Override
public GetDBInstanceTopologyResponse build() {
return new GetDBInstanceTopologyResponse(this);
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/GetDBInstanceTopologyResponseBody.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDBInstanceTopologyResponseBody} extends {@link TeaModel}
*
* <p>GetDBInstanceTopologyResponseBody</p>
*/
public class GetDBInstanceTopologyResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Code")
private String code;
@com.aliyun.core.annotation.NameInMap("Data")
private Data data;
@com.aliyun.core.annotation.NameInMap("Message")
private String message;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private GetDBInstanceTopologyResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.message = builder.message;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static GetDBInstanceTopologyResponseBody create() {
return builder().build();
}
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String code;
private Data data;
private String message;
private String requestId;
private Builder() {
}
private Builder(GetDBInstanceTopologyResponseBody model) {
this.code = model.code;
this.data = model.data;
this.message = model.message;
this.requestId = model.requestId;
}
/**
* <p>An internal parameter. You can ignore this parameter.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* <p>The details about the topology.</p>
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* <p>An internal parameter. You can ignore this parameter.</p>
*
* <strong>example:</strong>
* <p>None</p>
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>7430AB1A-6D49-5B6D-B9E5-920250076074</p>
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public GetDBInstanceTopologyResponseBody build() {
return new GetDBInstanceTopologyResponseBody(this);
}
}
/**
*
* {@link GetDBInstanceTopologyResponseBody} extends {@link TeaModel}
*
* <p>GetDBInstanceTopologyResponseBody</p>
*/
public static class Connections extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ConnectionString")
private String connectionString;
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("NetType")
private String netType;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private Connections(Builder builder) {
this.connectionString = builder.connectionString;
this.DBInstanceName = builder.DBInstanceName;
this.netType = builder.netType;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static Connections create() {
return builder().build();
}
/**
* @return connectionString
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return netType
*/
public String getNetType() {
return this.netType;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String connectionString;
private String DBInstanceName;
private String netType;
private String zoneId;
private Builder() {
}
private Builder(Connections model) {
this.connectionString = model.connectionString;
this.DBInstanceName = model.DBInstanceName;
this.netType = model.netType;
this.zoneId = model.zoneId;
}
/**
* <p>The endpoint that is used to connect to the database instance.</p>
*
* <strong>example:</strong>
* <p>rm-m5ezban**********.mysql.rds.aliyuncs.com</p>
*/
public Builder connectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-m5ezban**********</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>The network type of the endpoint. Valid values:</p>
* <ul>
* <li><strong>vpc</strong></li>
* <li><strong>public</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>vpc</p>
*/
public Builder netType(String netType) {
this.netType = netType;
return this;
}
/**
* <p>The zone ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-qingdao-c</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public Connections build() {
return new Connections(this);
}
}
}
/**
*
* {@link GetDBInstanceTopologyResponseBody} extends {@link TeaModel}
*
* <p>GetDBInstanceTopologyResponseBody</p>
*/
public static class Nodes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("DedicatedHostGroupId")
private String dedicatedHostGroupId;
@com.aliyun.core.annotation.NameInMap("DedicatedHostId")
private String dedicatedHostId;
@com.aliyun.core.annotation.NameInMap("NodeId")
private String nodeId;
@com.aliyun.core.annotation.NameInMap("Role")
private String role;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private Nodes(Builder builder) {
this.DBInstanceName = builder.DBInstanceName;
this.dedicatedHostGroupId = builder.dedicatedHostGroupId;
this.dedicatedHostId = builder.dedicatedHostId;
this.nodeId = builder.nodeId;
this.role = builder.role;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static Nodes create() {
return builder().build();
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return dedicatedHostGroupId
*/
public String getDedicatedHostGroupId() {
return this.dedicatedHostGroupId;
}
/**
* @return dedicatedHostId
*/
public String getDedicatedHostId() {
return this.dedicatedHostId;
}
/**
* @return nodeId
*/
public String getNodeId() {
return this.nodeId;
}
/**
* @return role
*/
public String getRole() {
return this.role;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String DBInstanceName;
private String dedicatedHostGroupId;
private String dedicatedHostId;
private String nodeId;
private String role;
private String zoneId;
private Builder() {
}
private Builder(Nodes model) {
this.DBInstanceName = model.DBInstanceName;
this.dedicatedHostGroupId = model.dedicatedHostGroupId;
this.dedicatedHostId = model.dedicatedHostId;
this.nodeId = model.nodeId;
this.role = model.role;
this.zoneId = model.zoneId;
}
/**
* <p>The ID of the instance.</p>
*
* <strong>example:</strong>
* <p>rm-m5ezban**********</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>The ID of the dedicated cluster.</p>
* <blockquote>
* <p>: If the instance does not reside in the specified dedicated cluster, no value is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>dhg-4n*****</p>
*/
public Builder dedicatedHostGroupId(String dedicatedHostGroupId) {
this.dedicatedHostGroupId = dedicatedHostGroupId;
return this;
}
/**
* <p>The host ID of the instance in the dedicated cluster.</p>
* <blockquote>
* <p>: If the instance does not reside in the specified dedicated cluster, no value is returned.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>i-bpxxxxxxx</p>
*/
public Builder dedicatedHostId(String dedicatedHostId) {
this.dedicatedHostId = dedicatedHostId;
return this;
}
/**
* <p>The ID of the instance.</p>
* <blockquote>
* <p>: The value **-1** is returned for an instance that does not reside in a dedicated cluster.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>349054</p>
*/
public Builder nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
/**
* <p>The type of the node. The following result is returned:</p>
* <ul>
* <li><strong>Master</strong>: a primary node</li>
* <li><strong>Slave</strong>: a secondary node</li>
* </ul>
*
* <strong>example:</strong>
* <p>master</p>
*/
public Builder role(String role) {
this.role = role;
return this;
}
/**
* <p>The zone ID of the instance.</p>
*
* <strong>example:</strong>
* <p>cn-qingdao-c</p>
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public Nodes build() {
return new Nodes(this);
}
}
}
/**
*
* {@link GetDBInstanceTopologyResponseBody} extends {@link TeaModel}
*
* <p>GetDBInstanceTopologyResponseBody</p>
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Connections")
private java.util.List<Connections> connections;
@com.aliyun.core.annotation.NameInMap("DBInstanceName")
private String DBInstanceName;
@com.aliyun.core.annotation.NameInMap("Nodes")
private java.util.List<Nodes> nodes;
private Data(Builder builder) {
this.connections = builder.connections;
this.DBInstanceName = builder.DBInstanceName;
this.nodes = builder.nodes;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return connections
*/
public java.util.List<Connections> getConnections() {
return this.connections;
}
/**
* @return DBInstanceName
*/
public String getDBInstanceName() {
return this.DBInstanceName;
}
/**
* @return nodes
*/
public java.util.List<Nodes> getNodes() {
return this.nodes;
}
public static final class Builder {
private java.util.List<Connections> connections;
private String DBInstanceName;
private java.util.List<Nodes> nodes;
private Builder() {
}
private Builder(Data model) {
this.connections = model.connections;
this.DBInstanceName = model.DBInstanceName;
this.nodes = model.nodes;
}
/**
* <p>The network connection information of the instance.</p>
*/
public Builder connections(java.util.List<Connections> connections) {
this.connections = connections;
return this;
}
/**
* <p>The instance ID.</p>
*
* <strong>example:</strong>
* <p>rm-m5ezban**********</p>
*/
public Builder DBInstanceName(String DBInstanceName) {
this.DBInstanceName = DBInstanceName;
return this;
}
/**
* <p>The queried nodes.</p>
*/
public Builder nodes(java.util.List<Nodes> nodes) {
this.nodes = nodes;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}
|
0 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815 | java-sources/com/aliyun/alibabacloud-rds20140815/11.0.0/com/aliyun/sdk/service/rds20140815/models/GetDbProxyInstanceSslRequest.java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.rds20140815.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link GetDbProxyInstanceSslRequest} extends {@link RequestModel}
*
* <p>GetDbProxyInstanceSslRequest</p>
*/
public class GetDbProxyInstanceSslRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBProxyEngineType")
private String DBProxyEngineType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DbInstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String dbInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
private GetDbProxyInstanceSslRequest(Builder builder) {
super(builder);
this.DBProxyEngineType = builder.DBProxyEngineType;
this.dbInstanceId = builder.dbInstanceId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static GetDbProxyInstanceSslRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBProxyEngineType
*/
public String getDBProxyEngineType() {
return this.DBProxyEngineType;
}
/**
* @return dbInstanceId
*/
public String getDbInstanceId() {
return this.dbInstanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder<GetDbProxyInstanceSslRequest, Builder> {
private String DBProxyEngineType;
private String dbInstanceId;
private String regionId;
private Builder() {
super();
}
private Builder(GetDbProxyInstanceSslRequest request) {
super(request);
this.DBProxyEngineType = request.DBProxyEngineType;
this.dbInstanceId = request.dbInstanceId;
this.regionId = request.regionId;
}
/**
* <p>A reserved parameter. You do not need to specify this parameter.</p>
*
* <strong>example:</strong>
* <p>normal</p>
*/
public Builder DBProxyEngineType(String DBProxyEngineType) {
this.putQueryParameter("DBProxyEngineType", DBProxyEngineType);
this.DBProxyEngineType = DBProxyEngineType;
return this;
}
/**
* <p>The instance ID. You can call the DescribeDBInstances operation to query the instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>rm-t4n3axxxxx</p>
*/
public Builder dbInstanceId(String dbInstanceId) {
this.putQueryParameter("DbInstanceId", dbInstanceId);
this.dbInstanceId = dbInstanceId;
return this;
}
/**
* <p>The region ID. You can call the DescribeRegions operation to query the most recent region list.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public GetDbProxyInstanceSslRequest build() {
return new GetDbProxyInstanceSslRequest(this);
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.