com.aliyun.sdk.service.polardb20170801.models.ModifyDBNodesParametersRequest 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 ModifyDBNodesParametersRequest} extends {@link RequestModel}
*
* ModifyDBNodesParametersRequest
*/
public class ModifyDBNodesParametersRequest 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("DBNodeIds")
@com.aliyun.core.annotation.Validation(required = true)
private String DBNodeIds;
@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 ModifyDBNodesParametersRequest(Builder builder) {
super(builder);
this.DBClusterId = builder.DBClusterId;
this.DBNodeIds = builder.DBNodeIds;
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 ModifyDBNodesParametersRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return DBClusterId
*/
public String getDBClusterId() {
return this.DBClusterId;
}
/**
* @return DBNodeIds
*/
public String getDBNodeIds() {
return this.DBNodeIds;
}
/**
* @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 String DBNodeIds;
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(ModifyDBNodesParametersRequest request) {
super(request);
this.DBClusterId = request.DBClusterId;
this.DBNodeIds = request.DBNodeIds;
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 cluster ID.
* This parameter is required.
*
* example:
* pc-**************
*/
public Builder DBClusterId(String DBClusterId) {
this.putQueryParameter("DBClusterId", DBClusterId);
this.DBClusterId = DBClusterId;
return this;
}
/**
* The ID of the node. You can specify multiple node IDs. Separate multiple node IDs with commas (,).
* This parameter is required.
*
* example:
* pi-, pi-
*/
public Builder DBNodeIds(String DBNodeIds) {
this.putQueryParameter("DBNodeIds", DBNodeIds);
this.DBNodeIds = DBNodeIds;
return this;
}
/**
* Specifies whether to immediately run the task to modify parameters and restart the cluster. Valid values: false: runs the task on schedule. true: runs the task immediately. Default value: false.
*
* 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 ID of the parameter template that is used for the cluster.
*
* example:
* pcpg-**************
*/
public Builder parameterGroupId(String parameterGroupId) {
this.putQueryParameter("ParameterGroupId", parameterGroupId);
this.parameterGroupId = parameterGroupId;
return this;
}
/**
* The JSON string that specifies the parameter and its value.
*
* example:
* {"wait_timeout":"86","innodb_old_blocks_time":"10"}
*/
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 ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC.
*
* example:
* 2022-04-28T14:30:00Z
*/
public Builder plannedEndTime(String plannedEndTime) {
this.putQueryParameter("PlannedEndTime", plannedEndTime);
this.plannedEndTime = plannedEndTime;
return this;
}
/**
* The earliest start time to run the task to upgrade the kernel version of the cluster. The task runs within a specified period of time. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC.
*
* example:
* 2022-04-28T14: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;
}
@Override
public ModifyDBNodesParametersRequest build() {
return new ModifyDBNodesParametersRequest(this);
}
}
}