com.tencentcloudapi.mariadb.v20170312.models.UpgradeHourDBInstanceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-mariadb Show documentation
Show all versions of tencentcloud-sdk-java-mariadb Show documentation
Tencent Cloud Open API SDK for Java
/*
* 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.mariadb.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class UpgradeHourDBInstanceRequest extends AbstractModel {
/**
* 实例ID
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 内存大小,单位:GB
*/
@SerializedName("Memory")
@Expose
private Long Memory;
/**
* 存储大小,单位:GB
*/
@SerializedName("Storage")
@Expose
private Long Storage;
/**
* 切换开始时间,格式如: "2019-12-12 07:00:00"。开始时间必须在当前时间一个小时以后,3天以内。
*/
@SerializedName("SwitchStartTime")
@Expose
private String SwitchStartTime;
/**
* 切换结束时间, 格式如: "2019-12-12 07:15:00",结束时间必须大于开始时间。
*/
@SerializedName("SwitchEndTime")
@Expose
private String SwitchEndTime;
/**
* 是否自动重试。 0:不自动重试 1:自动重试
*/
@SerializedName("SwitchAutoRetry")
@Expose
private Long SwitchAutoRetry;
/**
* 变更部署时指定的新可用区列表,第1个为主可用区,其余为从可用区
*/
@SerializedName("Zones")
@Expose
private String [] Zones;
/**
* Get 实例ID
* @return InstanceId 实例ID
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 实例ID
* @param InstanceId 实例ID
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 内存大小,单位:GB
* @return Memory 内存大小,单位:GB
*/
public Long getMemory() {
return this.Memory;
}
/**
* Set 内存大小,单位:GB
* @param Memory 内存大小,单位:GB
*/
public void setMemory(Long Memory) {
this.Memory = Memory;
}
/**
* Get 存储大小,单位:GB
* @return Storage 存储大小,单位:GB
*/
public Long getStorage() {
return this.Storage;
}
/**
* Set 存储大小,单位:GB
* @param Storage 存储大小,单位:GB
*/
public void setStorage(Long Storage) {
this.Storage = Storage;
}
/**
* Get 切换开始时间,格式如: "2019-12-12 07:00:00"。开始时间必须在当前时间一个小时以后,3天以内。
* @return SwitchStartTime 切换开始时间,格式如: "2019-12-12 07:00:00"。开始时间必须在当前时间一个小时以后,3天以内。
*/
public String getSwitchStartTime() {
return this.SwitchStartTime;
}
/**
* Set 切换开始时间,格式如: "2019-12-12 07:00:00"。开始时间必须在当前时间一个小时以后,3天以内。
* @param SwitchStartTime 切换开始时间,格式如: "2019-12-12 07:00:00"。开始时间必须在当前时间一个小时以后,3天以内。
*/
public void setSwitchStartTime(String SwitchStartTime) {
this.SwitchStartTime = SwitchStartTime;
}
/**
* Get 切换结束时间, 格式如: "2019-12-12 07:15:00",结束时间必须大于开始时间。
* @return SwitchEndTime 切换结束时间, 格式如: "2019-12-12 07:15:00",结束时间必须大于开始时间。
*/
public String getSwitchEndTime() {
return this.SwitchEndTime;
}
/**
* Set 切换结束时间, 格式如: "2019-12-12 07:15:00",结束时间必须大于开始时间。
* @param SwitchEndTime 切换结束时间, 格式如: "2019-12-12 07:15:00",结束时间必须大于开始时间。
*/
public void setSwitchEndTime(String SwitchEndTime) {
this.SwitchEndTime = SwitchEndTime;
}
/**
* Get 是否自动重试。 0:不自动重试 1:自动重试
* @return SwitchAutoRetry 是否自动重试。 0:不自动重试 1:自动重试
*/
public Long getSwitchAutoRetry() {
return this.SwitchAutoRetry;
}
/**
* Set 是否自动重试。 0:不自动重试 1:自动重试
* @param SwitchAutoRetry 是否自动重试。 0:不自动重试 1:自动重试
*/
public void setSwitchAutoRetry(Long SwitchAutoRetry) {
this.SwitchAutoRetry = SwitchAutoRetry;
}
/**
* Get 变更部署时指定的新可用区列表,第1个为主可用区,其余为从可用区
* @return Zones 变更部署时指定的新可用区列表,第1个为主可用区,其余为从可用区
*/
public String [] getZones() {
return this.Zones;
}
/**
* Set 变更部署时指定的新可用区列表,第1个为主可用区,其余为从可用区
* @param Zones 变更部署时指定的新可用区列表,第1个为主可用区,其余为从可用区
*/
public void setZones(String [] Zones) {
this.Zones = Zones;
}
public UpgradeHourDBInstanceRequest() {
}
/**
* 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 UpgradeHourDBInstanceRequest(UpgradeHourDBInstanceRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.Memory != null) {
this.Memory = new Long(source.Memory);
}
if (source.Storage != null) {
this.Storage = new Long(source.Storage);
}
if (source.SwitchStartTime != null) {
this.SwitchStartTime = new String(source.SwitchStartTime);
}
if (source.SwitchEndTime != null) {
this.SwitchEndTime = new String(source.SwitchEndTime);
}
if (source.SwitchAutoRetry != null) {
this.SwitchAutoRetry = new Long(source.SwitchAutoRetry);
}
if (source.Zones != null) {
this.Zones = new String[source.Zones.length];
for (int i = 0; i < source.Zones.length; i++) {
this.Zones[i] = new String(source.Zones[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "Memory", this.Memory);
this.setParamSimple(map, prefix + "Storage", this.Storage);
this.setParamSimple(map, prefix + "SwitchStartTime", this.SwitchStartTime);
this.setParamSimple(map, prefix + "SwitchEndTime", this.SwitchEndTime);
this.setParamSimple(map, prefix + "SwitchAutoRetry", this.SwitchAutoRetry);
this.setParamArraySimple(map, prefix + "Zones.", this.Zones);
}
}