com.aliyun.sdk.service.polardb20170801.models.TempModifyDBNodeRequest 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 TempModifyDBNodeRequest} extends {@link RequestModel}
*
* TempModifyDBNodeRequest
*/
public class TempModifyDBNodeRequest 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("DBClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String DBClusterId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DBNode")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List DBNode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ModifyType")
@com.aliyun.core.annotation.Validation(required = true)
private String modifyType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OperationType")
@com.aliyun.core.annotation.Validation(required = true)
private String operationType;
@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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RestoreTime")
@com.aliyun.core.annotation.Validation(required = true)
private String restoreTime;
private TempModifyDBNodeRequest(Builder builder) {
super(builder);
this.clientToken = builder.clientToken;
this.DBClusterId = builder.DBClusterId;
this.DBNode = builder.DBNode;
this.modifyType = builder.modifyType;
this.operationType = builder.operationType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.restoreTime = builder.restoreTime;
}
public static Builder builder() {
return new Builder();
}
public static TempModifyDBNodeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return DBClusterId
*/
public String getDBClusterId() {
return this.DBClusterId;
}
/**
* @return DBNode
*/
public java.util.List getDBNode() {
return this.DBNode;
}
/**
* @return modifyType
*/
public String getModifyType() {
return this.modifyType;
}
/**
* @return operationType
*/
public String getOperationType() {
return this.operationType;
}
/**
* @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;
}
/**
* @return restoreTime
*/
public String getRestoreTime() {
return this.restoreTime;
}
public static final class Builder extends Request.Builder {
private String clientToken;
private String DBClusterId;
private java.util.List DBNode;
private String modifyType;
private String operationType;
private String ownerAccount;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String restoreTime;
private Builder() {
super();
}
private Builder(TempModifyDBNodeRequest request) {
super(request);
this.clientToken = request.clientToken;
this.DBClusterId = request.DBClusterId;
this.DBNode = request.DBNode;
this.modifyType = request.modifyType;
this.operationType = request.operationType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.restoreTime = request.restoreTime;
}
/**
* The client token that is used to ensure the idempotence of the request. You can use the client to generate the value. Make sure that the value is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.
*
* example:
* 6000170000591aed949d0f5********************
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* The cluster ID.
* This parameter is required.
*
* example:
* pc-xxxxxxxxxx
*/
public Builder DBClusterId(String DBClusterId) {
this.putQueryParameter("DBClusterId", DBClusterId);
this.DBClusterId = DBClusterId;
return this;
}
/**
* The information of the added node.
* This parameter is required.
*/
public Builder DBNode(java.util.List DBNode) {
this.putQueryParameter("DBNode", DBNode);
this.DBNode = DBNode;
return this;
}
/**
* The type of configuration change. Set the value to TempUpgrade.
* This parameter is required.
*
* example:
* TempUpgrade
*/
public Builder modifyType(String modifyType) {
this.putQueryParameter("ModifyType", modifyType);
this.modifyType = modifyType;
return this;
}
/**
* The operation type. Valid values:
*
* - Modify: temporarily upgrades the configuration of the cluster.
*
* This parameter is required.
*
* example:
* Modify
*/
public Builder operationType(String operationType) {
this.putQueryParameter("OperationType", operationType);
this.operationType = operationType;
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;
}
/**
* The rollback time of the configuration for the temporary upgrade. Specify the time in the ISO 8601 standard in the YYYY-MM-DD hh:mm:ss format.
*
* The rollback time cannot be 1 hour earlier than the current time and cannot be later than one day before the time when the cluster expires.
*
* This parameter is required.
*
* example:
* 2021-09-23 18:16:00
*/
public Builder restoreTime(String restoreTime) {
this.putQueryParameter("RestoreTime", restoreTime);
this.restoreTime = restoreTime;
return this;
}
@Override
public TempModifyDBNodeRequest build() {
return new TempModifyDBNodeRequest(this);
}
}
/**
*
* {@link TempModifyDBNodeRequest} extends {@link TeaModel}
*
* TempModifyDBNodeRequest
*/
public static class DBNode extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TargetClass")
private String targetClass;
@com.aliyun.core.annotation.NameInMap("ZoneId")
private String zoneId;
private DBNode(Builder builder) {
this.targetClass = builder.targetClass;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static DBNode create() {
return builder().build();
}
/**
* @return targetClass
*/
public String getTargetClass() {
return this.targetClass;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private String targetClass;
private String zoneId;
/**
* The instance type of the added node. The instance type of the added node must be the same as the instance type of the original node.
*
* You can call the DescribeDBClusters operation to view the instance types of original nodes.
*
*
* example:
* polar.mysql.x4.medium
*/
public Builder targetClass(String targetClass) {
this.targetClass = targetClass;
return this;
}
/**
* The ID of the zone in which the added node is deployed. The instance type of the added node must be the same as the instance type of the original node.
*
* example:
* cn-hangzhou-i
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public DBNode build() {
return new DBNode(this);
}
}
}
}