
com.aliyun.sdk.service.polardb20170801.models.ModifyDBClusterParametersRequest 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 darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link ModifyDBClusterParametersRequest} extends {@link RequestModel}
*
* ModifyDBClusterParametersRequest
*/
public class ModifyDBClusterParametersRequest extends Request {
@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("ParameterGroupId")
private String parameterGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Parameters")
private String parameters;
@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;
private ModifyDBClusterParametersRequest(Builder builder) {
super(builder);
this.DBClusterId = builder.DBClusterId;
this.fromTimeService = builder.fromTimeService;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.parameterGroupId = builder.parameterGroupId;
this.parameters = builder.parameters;
this.plannedEndTime = builder.plannedEndTime;
this.plannedStartTime = builder.plannedStartTime;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static ModifyDBClusterParametersRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @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 parameterGroupId
*/
public String getParameterGroupId() {
return this.parameterGroupId;
}
/**
* @return parameters
*/
public String getParameters() {
return this.parameters;
}
/**
* @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;
}
public static final class Builder extends Request.Builder {
private String DBClusterId;
private Boolean fromTimeService;
private String ownerAccount;
private Long ownerId;
private String parameterGroupId;
private String parameters;
private String plannedEndTime;
private String plannedStartTime;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(ModifyDBClusterParametersRequest request) {
super(request);
this.DBClusterId = request.DBClusterId;
this.fromTimeService = request.fromTimeService;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.parameterGroupId = request.parameterGroupId;
this.parameters = request.parameters;
this.plannedEndTime = request.plannedEndTime;
this.plannedStartTime = request.plannedStartTime;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* The ID of the cluster.
*
*
* > You can call the [DescribeDBClusters](~~98094~~) operation to query information about all clusters that are deployed in a specified region, such as the cluster ID.
*/
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
*/
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 ID of the parameter template.
*
*
* >
*
* * You can call the [DescribeParameterGroups](~~207178~~) operation to query the parameter template ID.
*
* * You must specify this parameter or the `Parameters` parameter.
* * This parameter is valid only for a PolarDB for MySQL cluster.
*/
public Builder parameterGroupId(String parameterGroupId) {
this.putQueryParameter("ParameterGroupId", parameterGroupId);
this.parameterGroupId = parameterGroupId;
return this;
}
/**
* The JSON string that consists of parameters and values. The parameter values are strings, for example, `{"wait_timeout":"86","innodb_old_blocks_time":"10"}`.
*
*
* >
*
* * You can call the [DescribeDBClusterParameters](~~98122~~) operation to query the parameters of the PolarDB cluster.
*
* * This parameter is required for a PolarDB for Oracle or PolarDB for PostgreSQL cluster.
* * For PolarDB for MySQL clusters, you must specify this parameter or the `ParameterGroupId` parameter.
*/
public Builder parameters(String parameters) {
this.putQueryParameter("Parameters", parameters);
this.parameters = parameters;
return this;
}
/**
* The latest start time to run the task. 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 the PlannedStartTime parameter.
*
* * By default, if you specify the `PlannedStartTime` parameter but do not specify the PlannedEndTime parameter, the latest start time of the task is set to a value that is calculated by using the following formula: `Value of the PlannedEndTime parameter + 30 minutes`. For example, if you set the `PlannedStartTime` parameter to `2021-01-14T09:00:00Z` and you do not specify the PlannedEndTime parameter, the latest start time of the task is set to `2021-01-14T09:30:00Z`.
*/
public Builder plannedEndTime(String plannedEndTime) {
this.putQueryParameter("PlannedEndTime", plannedEndTime);
this.plannedEndTime = plannedEndTime;
return this;
}
/**
* The earliest time to upgrade 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 earliest start time of the 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 the time range from `2021-01-14T09:00:00Z` to `2021-01-15T09:00:00Z`.
*
* * If this parameter is empty, the upgrade task is immediately performed.
*/
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;
}
@Override
public ModifyDBClusterParametersRequest build() {
return new ModifyDBClusterParametersRequest(this);
}
}
}