com.aliyun.sdk.service.polardb20170801.models.ModifyDBClusterServerlessConfRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-polardb20170801 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.polardb20170801.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ModifyDBClusterServerlessConfRequest} extends {@link RequestModel}
*
* ModifyDBClusterServerlessConfRequest
*/
public class ModifyDBClusterServerlessConfRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllowShutDown")
private String allowShutDown;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CrontabJobId")
private String crontabJobId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBClusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("FromTimeService")
private Boolean fromTimeService;
@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("PlannedEndTime")
private String plannedEndTime;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PlannedStartTime")
private String plannedStartTime;
@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("ScaleApRoNumMax")
private String scaleApRoNumMax;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScaleApRoNumMin")
private String scaleApRoNumMin;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScaleMax")
private String scaleMax;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScaleMin")
private String scaleMin;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScaleRoNumMax")
private String scaleRoNumMax;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ScaleRoNumMin")
private String scaleRoNumMin;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecondsUntilAutoPause")
private String secondsUntilAutoPause;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServerlessRuleCpuEnlargeThreshold")
private String serverlessRuleCpuEnlargeThreshold;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServerlessRuleCpuShrinkThreshold")
private String serverlessRuleCpuShrinkThreshold;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ServerlessRuleMode")
private String serverlessRuleMode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TaskId")
private String taskId;
private ModifyDBClusterServerlessConfRequest(Builder builder) {
super(builder);
this.allowShutDown = builder.allowShutDown;
this.crontabJobId = builder.crontabJobId;
this.DBClusterId = builder.DBClusterId;
this.fromTimeService = builder.fromTimeService;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.plannedEndTime = builder.plannedEndTime;
this.plannedStartTime = builder.plannedStartTime;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.scaleApRoNumMax = builder.scaleApRoNumMax;
this.scaleApRoNumMin = builder.scaleApRoNumMin;
this.scaleMax = builder.scaleMax;
this.scaleMin = builder.scaleMin;
this.scaleRoNumMax = builder.scaleRoNumMax;
this.scaleRoNumMin = builder.scaleRoNumMin;
this.secondsUntilAutoPause = builder.secondsUntilAutoPause;
this.serverlessRuleCpuEnlargeThreshold = builder.serverlessRuleCpuEnlargeThreshold;
this.serverlessRuleCpuShrinkThreshold = builder.serverlessRuleCpuShrinkThreshold;
this.serverlessRuleMode = builder.serverlessRuleMode;
this.taskId = builder.taskId;
}
public static Builder builder() {
return new Builder();
}
public static ModifyDBClusterServerlessConfRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return allowShutDown
*/
public String getAllowShutDown() {
return this.allowShutDown;
}
/**
* @return crontabJobId
*/
public String getCrontabJobId() {
return this.crontabJobId;
}
/**
* @return DBClusterId
*/
public String getDBClusterId() {
return this.DBClusterId;
}
/**
* @return fromTimeService
*/
public Boolean getFromTimeService() {
return this.fromTimeService;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return plannedEndTime
*/
public String getPlannedEndTime() {
return this.plannedEndTime;
}
/**
* @return plannedStartTime
*/
public String getPlannedStartTime() {
return this.plannedStartTime;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return scaleApRoNumMax
*/
public String getScaleApRoNumMax() {
return this.scaleApRoNumMax;
}
/**
* @return scaleApRoNumMin
*/
public String getScaleApRoNumMin() {
return this.scaleApRoNumMin;
}
/**
* @return scaleMax
*/
public String getScaleMax() {
return this.scaleMax;
}
/**
* @return scaleMin
*/
public String getScaleMin() {
return this.scaleMin;
}
/**
* @return scaleRoNumMax
*/
public String getScaleRoNumMax() {
return this.scaleRoNumMax;
}
/**
* @return scaleRoNumMin
*/
public String getScaleRoNumMin() {
return this.scaleRoNumMin;
}
/**
* @return secondsUntilAutoPause
*/
public String getSecondsUntilAutoPause() {
return this.secondsUntilAutoPause;
}
/**
* @return serverlessRuleCpuEnlargeThreshold
*/
public String getServerlessRuleCpuEnlargeThreshold() {
return this.serverlessRuleCpuEnlargeThreshold;
}
/**
* @return serverlessRuleCpuShrinkThreshold
*/
public String getServerlessRuleCpuShrinkThreshold() {
return this.serverlessRuleCpuShrinkThreshold;
}
/**
* @return serverlessRuleMode
*/
public String getServerlessRuleMode() {
return this.serverlessRuleMode;
}
/**
* @return taskId
*/
public String getTaskId() {
return this.taskId;
}
public static final class Builder extends Request.Builder {
private String allowShutDown;
private String crontabJobId;
private String DBClusterId;
private Boolean fromTimeService;
private String ownerAccount;
private Long ownerId;
private String plannedEndTime;
private String plannedStartTime;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String scaleApRoNumMax;
private String scaleApRoNumMin;
private String scaleMax;
private String scaleMin;
private String scaleRoNumMax;
private String scaleRoNumMin;
private String secondsUntilAutoPause;
private String serverlessRuleCpuEnlargeThreshold;
private String serverlessRuleCpuShrinkThreshold;
private String serverlessRuleMode;
private String taskId;
private Builder() {
super();
}
private Builder(ModifyDBClusterServerlessConfRequest request) {
super(request);
this.allowShutDown = request.allowShutDown;
this.crontabJobId = request.crontabJobId;
this.DBClusterId = request.DBClusterId;
this.fromTimeService = request.fromTimeService;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.plannedEndTime = request.plannedEndTime;
this.plannedStartTime = request.plannedStartTime;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.scaleApRoNumMax = request.scaleApRoNumMax;
this.scaleApRoNumMin = request.scaleApRoNumMin;
this.scaleMax = request.scaleMax;
this.scaleMin = request.scaleMin;
this.scaleRoNumMax = request.scaleRoNumMax;
this.scaleRoNumMin = request.scaleRoNumMin;
this.secondsUntilAutoPause = request.secondsUntilAutoPause;
this.serverlessRuleCpuEnlargeThreshold = request.serverlessRuleCpuEnlargeThreshold;
this.serverlessRuleCpuShrinkThreshold = request.serverlessRuleCpuShrinkThreshold;
this.serverlessRuleMode = request.serverlessRuleMode;
this.taskId = request.taskId;
}
/**
* Specifies whether to enable No-activity Suspension. Default value: false. Valid values:
*
* - true
* - false
*
*
* example:
* true
*/
public Builder allowShutDown(String allowShutDown) {
this.putQueryParameter("AllowShutDown", allowShutDown);
this.allowShutDown = allowShutDown;
return this;
}
/**
* Cycle policy ID.
*
* example:
* 143f8e9f-2566-4dff-be47-bed79f28fc78
*/
public Builder crontabJobId(String crontabJobId) {
this.putQueryParameter("CrontabJobId", crontabJobId);
this.crontabJobId = crontabJobId;
return this;
}
/**
* The ID of the serverless cluster.
* This parameter is required.
*
* example:
* pc-bp10gr51qasnl****
*/
public Builder DBClusterId(String DBClusterId) {
this.putQueryParameter("DBClusterId", DBClusterId);
this.DBClusterId = DBClusterId;
return this;
}
/**
* Specifies an immediate or scheduled task to modify parameters and restart the cluster. Valid values:
*
* - false: scheduled task
* - true: immediate task
*
*
* example:
* false
*/
public Builder fromTimeService(Boolean fromTimeService) {
this.putQueryParameter("FromTimeService", fromTimeService);
this.fromTimeService = fromTimeService;
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;
}
/**
* The latest start time for upgrading the specifications within the scheduled time period. Specify the time in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC.
*
*
* - The value of this parameter must be at least 30 minutes later than the value of PlannedStartTime.
* - If you specify PlannedStartTime but do not specify PlannedEndTime, the latest start time of the task is set to a value that is calculated by using the following formula:
PlannedEndTime value + 30 minutes
. For example, if you set PlannedStartTime to 2021-01-14T09:00:00Z
and you do not specify PlannedEndTime, the latest start time of the task is set to 2021-01-14T09:30:00Z
.
*
*
*
* example:
* 2021-01-14T09:30:00Z
*/
public Builder plannedEndTime(String plannedEndTime) {
this.putQueryParameter("PlannedEndTime", plannedEndTime);
this.plannedEndTime = plannedEndTime;
return this;
}
/**
* The earliest start time of the scheduled task for adding the read-only node. The scheduled task specifies that the task is run in the required period. Specify the time in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC.
*
*
* - The earliest start time of the scheduled task can be a point in time within the next 24 hours. For example, if the current time is
2021-01-14T09:00:00Z
, you can specify a point in time between 2021-01-14T09:00:00Z
and 2021-01-15T09:00:00Z
.
* - If you leave this parameter empty, the task for adding the read-only node is immediately run by default.
*
*
*
* example:
* 2021-01-14T09:00:00Z
*/
public Builder plannedStartTime(String plannedStartTime) {
this.putQueryParameter("PlannedStartTime", plannedStartTime);
this.plannedStartTime = plannedStartTime;
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;
}
/**
* The maximum number of stable AP read-only nodes. Valid values: 0 to 7.
*
* example:
* 1
*/
public Builder scaleApRoNumMax(String scaleApRoNumMax) {
this.putQueryParameter("ScaleApRoNumMax", scaleApRoNumMax);
this.scaleApRoNumMax = scaleApRoNumMax;
return this;
}
/**
* The minimum number of stable AP read-only nodes. Valid values: 0 to 7.
*
* example:
* 1
*/
public Builder scaleApRoNumMin(String scaleApRoNumMin) {
this.putQueryParameter("ScaleApRoNumMin", scaleApRoNumMin);
this.scaleApRoNumMin = scaleApRoNumMin;
return this;
}
/**
* The maximum number of PCUs per node for scaling. Valid values: 1 PCU to 32 PCUs.
*
* example:
* 10
*/
public Builder scaleMax(String scaleMax) {
this.putQueryParameter("ScaleMax", scaleMax);
this.scaleMax = scaleMax;
return this;
}
/**
* The minimum number of PCUs per node for scaling. Valid values: 1 PCU to 31 PCUs.
*
* example:
* 1
*/
public Builder scaleMin(String scaleMin) {
this.putQueryParameter("ScaleMin", scaleMin);
this.scaleMin = scaleMin;
return this;
}
/**
* The maximum number of read-only nodes for scaling. Valid values: 0 to 15.
*
* example:
* 2
*/
public Builder scaleRoNumMax(String scaleRoNumMax) {
this.putQueryParameter("ScaleRoNumMax", scaleRoNumMax);
this.scaleRoNumMax = scaleRoNumMax;
return this;
}
/**
* The minimum number of read-only nodes for scaling. Valid values: 0 to 15.
*
* example:
* 1
*/
public Builder scaleRoNumMin(String scaleRoNumMin) {
this.putQueryParameter("ScaleRoNumMin", scaleRoNumMin);
this.scaleRoNumMin = scaleRoNumMin;
return this;
}
/**
* The detection period for No-activity Suspension. Valid values: 5 to 1440. Unit: minutes. The detection duration must be a multiple of 5 minutes.
*
* example:
* 10
*/
public Builder secondsUntilAutoPause(String secondsUntilAutoPause) {
this.putQueryParameter("SecondsUntilAutoPause", secondsUntilAutoPause);
this.secondsUntilAutoPause = secondsUntilAutoPause;
return this;
}
/**
* CPU burst threshold
*
* example:
* 80
*/
public Builder serverlessRuleCpuEnlargeThreshold(String serverlessRuleCpuEnlargeThreshold) {
this.putQueryParameter("ServerlessRuleCpuEnlargeThreshold", serverlessRuleCpuEnlargeThreshold);
this.serverlessRuleCpuEnlargeThreshold = serverlessRuleCpuEnlargeThreshold;
return this;
}
/**
* CPU downscale threshold
*
* example:
* 50
*/
public Builder serverlessRuleCpuShrinkThreshold(String serverlessRuleCpuShrinkThreshold) {
this.putQueryParameter("ServerlessRuleCpuShrinkThreshold", serverlessRuleCpuShrinkThreshold);
this.serverlessRuleCpuShrinkThreshold = serverlessRuleCpuShrinkThreshold;
return this;
}
/**
* Elastic sensitivity. Values: - normal: standard - flexible: sensitive
*
* example:
* normal
* flexible
*/
public Builder serverlessRuleMode(String serverlessRuleMode) {
this.putQueryParameter("ServerlessRuleMode", serverlessRuleMode);
this.serverlessRuleMode = serverlessRuleMode;
return this;
}
/**
* Asynchronous task ID.
*
* example:
* 143f8e9f-2566-4dff-be47-bed79f28fc78
*/
public Builder taskId(String taskId) {
this.putQueryParameter("TaskId", taskId);
this.taskId = taskId;
return this;
}
@Override
public ModifyDBClusterServerlessConfRequest build() {
return new ModifyDBClusterServerlessConfRequest(this);
}
}
}