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

com.tencentcloudapi.postgres.v20170312.models.ModifyDBInstanceDeploymentRequest 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 ModifyDBInstanceDeploymentRequest extends AbstractModel{

    /**
    * 实例ID。
    */
    @SerializedName("DBInstanceId")
    @Expose
    private String DBInstanceId;

    /**
    * 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
    */
    @SerializedName("DBNodeSet")
    @Expose
    private DBNode [] DBNodeSet;

    /**
    * 指定实例配置完成变更后的切换时间。
  • 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。 * @return DBInstanceId 实例ID。 */ public String getDBInstanceId() { return this.DBInstanceId; } /** * Set 实例ID。 * @param DBInstanceId 实例ID。 */ public void setDBInstanceId(String DBInstanceId) { this.DBInstanceId = DBInstanceId; } /** * Get 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。 可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。 * @return DBNodeSet 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。 可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。 */ public DBNode [] getDBNodeSet() { return this.DBNodeSet; } /** * Set 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。 可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。 * @param DBNodeSet 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。 可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。 */ public void setDBNodeSet(DBNode [] DBNodeSet) { this.DBNodeSet = DBNodeSet; } /** * 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 ModifyDBInstanceDeploymentRequest() { } /** * 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 ModifyDBInstanceDeploymentRequest(ModifyDBInstanceDeploymentRequest source) { if (source.DBInstanceId != null) { this.DBInstanceId = new String(source.DBInstanceId); } if (source.DBNodeSet != null) { this.DBNodeSet = new DBNode[source.DBNodeSet.length]; for (int i = 0; i < source.DBNodeSet.length; i++) { this.DBNodeSet[i] = new DBNode(source.DBNodeSet[i]); } } 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.setParamArrayObj(map, prefix + "DBNodeSet.", this.DBNodeSet); 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