
com.aliyun.sdk.service.polardb20170801.models.ModifyDBClusterAndNodesParametersRequest Maven / Gradle / Ivy
// 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 ModifyDBClusterAndNodesParametersRequest} extends {@link RequestModel}
*
* ModifyDBClusterAndNodesParametersRequest
*/
public class ModifyDBClusterAndNodesParametersRequest 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")
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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StandbyClusterIdListNeedToSync")
private String standbyClusterIdListNeedToSync;
private ModifyDBClusterAndNodesParametersRequest(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;
this.standbyClusterIdListNeedToSync = builder.standbyClusterIdListNeedToSync;
}
public static Builder builder() {
return new Builder();
}
public static ModifyDBClusterAndNodesParametersRequest 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;
}
/**
* @return standbyClusterIdListNeedToSync
*/
public String getStandbyClusterIdListNeedToSync() {
return this.standbyClusterIdListNeedToSync;
}
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 String standbyClusterIdListNeedToSync;
private Builder() {
super();
}
private Builder(ModifyDBClusterAndNodesParametersRequest 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;
this.standbyClusterIdListNeedToSync = request.standbyClusterIdListNeedToSync;
}
/**
* The ID of the cluster.
* This parameter is required.
*
* example:
* pc-****************
*/
public Builder DBClusterId(String DBClusterId) {
this.putQueryParameter("DBClusterId", DBClusterId);
this.DBClusterId = DBClusterId;
return this;
}
/**
* The IDs of nodes. You can specify this parameter, or leave this parameter empty. Separate multiple node IDs with commas (,).
*
* If you do not specify this parameter, only the cluster parameters are modified.
*
*
* example:
* pi-****************,pi-**********,
*/
public Builder DBNodeIds(String DBNodeIds) {
this.putQueryParameter("DBNodeIds", DBNodeIds);
this.DBNodeIds = DBNodeIds;
return this;
}
/**
* Specifies an immediate or scheduled task to modify parameters and restart the cluster. Default value: false. Valid values:
*
* - false: runs the kernel upgrade task in a scheduled manner.
* - true: immediately runs the kernel upgrade 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 ID of the parameter template.
*
* example:
* pcpg-**************
*/
public Builder parameterGroupId(String parameterGroupId) {
this.putQueryParameter("ParameterGroupId", parameterGroupId);
this.parameterGroupId = parameterGroupId;
return this;
}
/**
* The JSON string for 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 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
.
*
*
*
* example:
* 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.
*
*
*
* 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 secondary clusters in the GDN to which the parameter settings are synchronized.
*
* example:
* gdn-,gdn-
*/
public Builder standbyClusterIdListNeedToSync(String standbyClusterIdListNeedToSync) {
this.putQueryParameter("StandbyClusterIdListNeedToSync", standbyClusterIdListNeedToSync);
this.standbyClusterIdListNeedToSync = standbyClusterIdListNeedToSync;
return this;
}
@Override
public ModifyDBClusterAndNodesParametersRequest build() {
return new ModifyDBClusterAndNodesParametersRequest(this);
}
}
}