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

com.tencentcloudapi.postgres.v20170312.models.ModifyDBInstanceSpecRequest Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.postgres.v20170312.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class ModifyDBInstanceSpecRequest extends AbstractModel{

    /**
    * 实例ID,形如:postgres-6bwgamo3。
    */
    @SerializedName("DBInstanceId")
    @Expose
    private String DBInstanceId;

    /**
    * 修改后的实例内存大小,单位GiB。
    */
    @SerializedName("Memory")
    @Expose
    private Long Memory;

    /**
    * 修改后的实例磁盘大小,单位GiB。
    */
    @SerializedName("Storage")
    @Expose
    private Long Storage;

    /**
    * 是否自动使用代金券:
  • 0:否
  • 1:是 默认值:0 */ @SerializedName("AutoVoucher") @Expose private Long AutoVoucher; /** * 代金券ID列表,目前仅支持指定一张代金券。 */ @SerializedName("VoucherIds") @Expose private String [] VoucherIds; /** * 活动ID。 */ @SerializedName("ActivityId") @Expose private Long ActivityId; /** * 指定实例配置完成变更后的切换时间。
  • 0:立即切换
  • 1:指定时间切换
  • 2:维护时间窗口内切换 默认值:0 */ @SerializedName("SwitchTag") @Expose private Long SwitchTag; /** * 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。 */ @SerializedName("SwitchStartTime") @Expose private String SwitchStartTime; /** * 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。 */ @SerializedName("SwitchEndTime") @Expose private String SwitchEndTime; /** * Get 实例ID,形如:postgres-6bwgamo3。 * @return DBInstanceId 实例ID,形如:postgres-6bwgamo3。 */ public String getDBInstanceId() { return this.DBInstanceId; } /** * Set 实例ID,形如:postgres-6bwgamo3。 * @param DBInstanceId 实例ID,形如:postgres-6bwgamo3。 */ public void setDBInstanceId(String DBInstanceId) { this.DBInstanceId = DBInstanceId; } /** * Get 修改后的实例内存大小,单位GiB。 * @return Memory 修改后的实例内存大小,单位GiB。 */ public Long getMemory() { return this.Memory; } /** * Set 修改后的实例内存大小,单位GiB。 * @param Memory 修改后的实例内存大小,单位GiB。 */ public void setMemory(Long Memory) { this.Memory = Memory; } /** * Get 修改后的实例磁盘大小,单位GiB。 * @return Storage 修改后的实例磁盘大小,单位GiB。 */ public Long getStorage() { return this.Storage; } /** * Set 修改后的实例磁盘大小,单位GiB。 * @param Storage 修改后的实例磁盘大小,单位GiB。 */ public void setStorage(Long Storage) { this.Storage = Storage; } /** * Get 是否自动使用代金券:
  • 0:否
  • 1:是 默认值:0 * @return AutoVoucher 是否自动使用代金券:
  • 0:否
  • 1:是 默认值:0 */ public Long getAutoVoucher() { return this.AutoVoucher; } /** * Set 是否自动使用代金券:
  • 0:否
  • 1:是 默认值:0 * @param AutoVoucher 是否自动使用代金券:
  • 0:否
  • 1:是 默认值:0 */ public void setAutoVoucher(Long AutoVoucher) { this.AutoVoucher = AutoVoucher; } /** * Get 代金券ID列表,目前仅支持指定一张代金券。 * @return VoucherIds 代金券ID列表,目前仅支持指定一张代金券。 */ public String [] getVoucherIds() { return this.VoucherIds; } /** * Set 代金券ID列表,目前仅支持指定一张代金券。 * @param VoucherIds 代金券ID列表,目前仅支持指定一张代金券。 */ public void setVoucherIds(String [] VoucherIds) { this.VoucherIds = VoucherIds; } /** * Get 活动ID。 * @return ActivityId 活动ID。 */ public Long getActivityId() { return this.ActivityId; } /** * Set 活动ID。 * @param ActivityId 活动ID。 */ public void setActivityId(Long ActivityId) { this.ActivityId = ActivityId; } /** * Get 指定实例配置完成变更后的切换时间。
  • 0:立即切换
  • 1:指定时间切换
  • 2:维护时间窗口内切换 默认值:0 * @return SwitchTag 指定实例配置完成变更后的切换时间。
  • 0:立即切换
  • 1:指定时间切换
  • 2:维护时间窗口内切换 默认值:0 */ public Long getSwitchTag() { return this.SwitchTag; } /** * Set 指定实例配置完成变更后的切换时间。
  • 0:立即切换
  • 1:指定时间切换
  • 2:维护时间窗口内切换 默认值:0 * @param SwitchTag 指定实例配置完成变更后的切换时间。
  • 0:立即切换
  • 1:指定时间切换
  • 2:维护时间窗口内切换 默认值:0 */ public void setSwitchTag(Long SwitchTag) { this.SwitchTag = SwitchTag; } /** * Get 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。 * @return SwitchStartTime 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。 */ public String getSwitchStartTime() { return this.SwitchStartTime; } /** * Set 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。 * @param SwitchStartTime 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。 */ public void setSwitchStartTime(String SwitchStartTime) { this.SwitchStartTime = SwitchStartTime; } /** * Get 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。 * @return SwitchEndTime 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。 */ public String getSwitchEndTime() { return this.SwitchEndTime; } /** * Set 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。 * @param SwitchEndTime 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。 */ public void setSwitchEndTime(String SwitchEndTime) { this.SwitchEndTime = SwitchEndTime; } public ModifyDBInstanceSpecRequest() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public ModifyDBInstanceSpecRequest(ModifyDBInstanceSpecRequest source) { if (source.DBInstanceId != null) { this.DBInstanceId = new String(source.DBInstanceId); } if (source.Memory != null) { this.Memory = new Long(source.Memory); } if (source.Storage != null) { this.Storage = new Long(source.Storage); } if (source.AutoVoucher != null) { this.AutoVoucher = new Long(source.AutoVoucher); } if (source.VoucherIds != null) { this.VoucherIds = new String[source.VoucherIds.length]; for (int i = 0; i < source.VoucherIds.length; i++) { this.VoucherIds[i] = new String(source.VoucherIds[i]); } } if (source.ActivityId != null) { this.ActivityId = new Long(source.ActivityId); } if (source.SwitchTag != null) { this.SwitchTag = new Long(source.SwitchTag); } if (source.SwitchStartTime != null) { this.SwitchStartTime = new String(source.SwitchStartTime); } if (source.SwitchEndTime != null) { this.SwitchEndTime = new String(source.SwitchEndTime); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "DBInstanceId", this.DBInstanceId); this.setParamSimple(map, prefix + "Memory", this.Memory); this.setParamSimple(map, prefix + "Storage", this.Storage); this.setParamSimple(map, prefix + "AutoVoucher", this.AutoVoucher); this.setParamArraySimple(map, prefix + "VoucherIds.", this.VoucherIds); this.setParamSimple(map, prefix + "ActivityId", this.ActivityId); this.setParamSimple(map, prefix + "SwitchTag", this.SwitchTag); this.setParamSimple(map, prefix + "SwitchStartTime", this.SwitchStartTime); this.setParamSimple(map, prefix + "SwitchEndTime", this.SwitchEndTime); } }




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy