All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.polardb20170801.models.ModifyDBClusterStorageSpaceRequest Maven / Gradle / Ivy

There is a newer version: 4.0.28
Show newest version
// 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 ModifyDBClusterStorageSpaceRequest} extends {@link RequestModel}
 *
 * 

ModifyDBClusterStorageSpaceRequest

*/ public class ModifyDBClusterStorageSpaceRequest 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("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("StorageSpace") @com.aliyun.core.annotation.Validation(required = true) private Long storageSpace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SubCategory") private String subCategory; private ModifyDBClusterStorageSpaceRequest(Builder builder) { super(builder); this.clientToken = builder.clientToken; this.DBClusterId = builder.DBClusterId; 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.storageSpace = builder.storageSpace; this.subCategory = builder.subCategory; } public static Builder builder() { return new Builder(); } public static ModifyDBClusterStorageSpaceRequest 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 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 storageSpace */ public Long getStorageSpace() { return this.storageSpace; } /** * @return subCategory */ public String getSubCategory() { return this.subCategory; } public static final class Builder extends Request.Builder { private String clientToken; private String DBClusterId; private String ownerAccount; private Long ownerId; private String plannedEndTime; private String plannedStartTime; private String resourceOwnerAccount; private Long resourceOwnerId; private Long storageSpace; private String subCategory; private Builder() { super(); } private Builder(ModifyDBClusterStorageSpaceRequest request) { super(request); this.clientToken = request.clientToken; this.DBClusterId = request.DBClusterId; 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.storageSpace = request.storageSpace; this.subCategory = request.subCategory; } /** *

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. The token is case-sensitive.

* * example: *

6000170000591aed949d0f54a343f1a4233c1e7d1c5c******

*/ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** *

The cluster ID.

*

This parameter is required.

* * example: *

pc-*************

*/ public Builder DBClusterId(String DBClusterId) { this.putQueryParameter("DBClusterId", DBClusterId); this.DBClusterId = DBClusterId; 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 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 value of this parameter must be at least 30 minutes later than PlannedStartTime.
  • *
  • By default, if you specify PlannedStartTime but do not specify PlannedEndTime, the latest start time of the task is set to PlannedEndTime + 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 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.

*
*
    *
  • This parameter takes effect only when ModifyType is set to Upgrade.
  • *
  • 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 that ranges from 2021-01-14T09:00:00Z to 2021-01-15T09:00:00Z.
  • *
  • If this parameter is left 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 storage capacity that you can select when you change the cluster. Unit: GB.

*
*

You can set this parameter for PolarDB for MySQL clusters of Standard Edition to a value that ranges from 20 to 32000.

*
*

This parameter is required.

* * example: *

50

*/ public Builder storageSpace(Long storageSpace) { this.putQueryParameter("StorageSpace", storageSpace); this.storageSpace = storageSpace; return this; } /** *

The category of the cluster. Default value: ON. Valid values:

*
    *
  • normal_exclusive: dedicated
  • *
  • normal_general: general-purpose
  • *
* * example: *

normal_general

*/ public Builder subCategory(String subCategory) { this.putQueryParameter("SubCategory", subCategory); this.subCategory = subCategory; return this; } @Override public ModifyDBClusterStorageSpaceRequest build() { return new ModifyDBClusterStorageSpaceRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy