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

com.tencentcloudapi.es.v20180416.models.UpgradeInstanceRequest 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.es.v20180416.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 UpgradeInstanceRequest extends AbstractModel {

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

    /**
    * 目标ES版本,支持:”6.4.3“, "6.8.2","7.5.1", "7.10.1", "7.14.2"
    */
    @SerializedName("EsVersion")
    @Expose
    private String EsVersion;

    /**
    * 是否只做升级检查,默认值为false
    */
    @SerializedName("CheckOnly")
    @Expose
    private Boolean CheckOnly;

    /**
    * 目标商业特性版本:
  • oss 开源版
  • basic 基础版
  • 当前仅在5.6.4升级6.x版本时使用,默认值为basic */ @SerializedName("LicenseType") @Expose private String LicenseType; /** * 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • */ @SerializedName("BasicSecurityType") @Expose private Long BasicSecurityType; /** * 升级方式:
  • scale 蓝绿变更
  • restart 滚动重启
  • 默认值为scale */ @SerializedName("UpgradeMode") @Expose private String UpgradeMode; /** * 升级版本前是否对集群进行备份,默认不备份 */ @SerializedName("CosBackup") @Expose private Boolean CosBackup; /** * 滚动模式时,是否跳过检查,进行强制重启。默认值为false */ @SerializedName("SkipCheckForceRestart") @Expose private Boolean SkipCheckForceRestart; /** * cvm延迟上架参数 */ @SerializedName("CvmDelayOnlineTime") @Expose private Long CvmDelayOnlineTime; /** * 分片迁移并发数 */ @SerializedName("ShardAllocationConcurrents") @Expose private Long ShardAllocationConcurrents; /** * 分片迁移并发速度 */ @SerializedName("ShardAllocationBytes") @Expose private Long ShardAllocationBytes; /** * 是否开启置放群组异步任务 */ @SerializedName("EnableScheduleRecoverGroup") @Expose private Boolean EnableScheduleRecoverGroup; /** * 置放群组异步任务时间段 */ @SerializedName("EnableScheduleOperationDuration") @Expose private EnableScheduleOperationDuration EnableScheduleOperationDuration; /** * 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 目标ES版本,支持:”6.4.3“, "6.8.2","7.5.1", "7.10.1", "7.14.2" * @return EsVersion 目标ES版本,支持:”6.4.3“, "6.8.2","7.5.1", "7.10.1", "7.14.2" */ public String getEsVersion() { return this.EsVersion; } /** * Set 目标ES版本,支持:”6.4.3“, "6.8.2","7.5.1", "7.10.1", "7.14.2" * @param EsVersion 目标ES版本,支持:”6.4.3“, "6.8.2","7.5.1", "7.10.1", "7.14.2" */ public void setEsVersion(String EsVersion) { this.EsVersion = EsVersion; } /** * Get 是否只做升级检查,默认值为false * @return CheckOnly 是否只做升级检查,默认值为false */ public Boolean getCheckOnly() { return this.CheckOnly; } /** * Set 是否只做升级检查,默认值为false * @param CheckOnly 是否只做升级检查,默认值为false */ public void setCheckOnly(Boolean CheckOnly) { this.CheckOnly = CheckOnly; } /** * Get 目标商业特性版本:
  • oss 开源版
  • basic 基础版
  • 当前仅在5.6.4升级6.x版本时使用,默认值为basic * @return LicenseType 目标商业特性版本:
  • oss 开源版
  • basic 基础版
  • 当前仅在5.6.4升级6.x版本时使用,默认值为basic */ public String getLicenseType() { return this.LicenseType; } /** * Set 目标商业特性版本:
  • oss 开源版
  • basic 基础版
  • 当前仅在5.6.4升级6.x版本时使用,默认值为basic * @param LicenseType 目标商业特性版本:
  • oss 开源版
  • basic 基础版
  • 当前仅在5.6.4升级6.x版本时使用,默认值为basic */ public void setLicenseType(String LicenseType) { this.LicenseType = LicenseType; } /** * Get 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • * @return BasicSecurityType 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • */ public Long getBasicSecurityType() { return this.BasicSecurityType; } /** * Set 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • * @param BasicSecurityType 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • */ public void setBasicSecurityType(Long BasicSecurityType) { this.BasicSecurityType = BasicSecurityType; } /** * Get 升级方式:
  • scale 蓝绿变更
  • restart 滚动重启
  • 默认值为scale * @return UpgradeMode 升级方式:
  • scale 蓝绿变更
  • restart 滚动重启
  • 默认值为scale */ public String getUpgradeMode() { return this.UpgradeMode; } /** * Set 升级方式:
  • scale 蓝绿变更
  • restart 滚动重启
  • 默认值为scale * @param UpgradeMode 升级方式:
  • scale 蓝绿变更
  • restart 滚动重启
  • 默认值为scale */ public void setUpgradeMode(String UpgradeMode) { this.UpgradeMode = UpgradeMode; } /** * Get 升级版本前是否对集群进行备份,默认不备份 * @return CosBackup 升级版本前是否对集群进行备份,默认不备份 */ public Boolean getCosBackup() { return this.CosBackup; } /** * Set 升级版本前是否对集群进行备份,默认不备份 * @param CosBackup 升级版本前是否对集群进行备份,默认不备份 */ public void setCosBackup(Boolean CosBackup) { this.CosBackup = CosBackup; } /** * Get 滚动模式时,是否跳过检查,进行强制重启。默认值为false * @return SkipCheckForceRestart 滚动模式时,是否跳过检查,进行强制重启。默认值为false */ public Boolean getSkipCheckForceRestart() { return this.SkipCheckForceRestart; } /** * Set 滚动模式时,是否跳过检查,进行强制重启。默认值为false * @param SkipCheckForceRestart 滚动模式时,是否跳过检查,进行强制重启。默认值为false */ public void setSkipCheckForceRestart(Boolean SkipCheckForceRestart) { this.SkipCheckForceRestart = SkipCheckForceRestart; } /** * Get cvm延迟上架参数 * @return CvmDelayOnlineTime cvm延迟上架参数 */ public Long getCvmDelayOnlineTime() { return this.CvmDelayOnlineTime; } /** * Set cvm延迟上架参数 * @param CvmDelayOnlineTime cvm延迟上架参数 */ public void setCvmDelayOnlineTime(Long CvmDelayOnlineTime) { this.CvmDelayOnlineTime = CvmDelayOnlineTime; } /** * Get 分片迁移并发数 * @return ShardAllocationConcurrents 分片迁移并发数 */ public Long getShardAllocationConcurrents() { return this.ShardAllocationConcurrents; } /** * Set 分片迁移并发数 * @param ShardAllocationConcurrents 分片迁移并发数 */ public void setShardAllocationConcurrents(Long ShardAllocationConcurrents) { this.ShardAllocationConcurrents = ShardAllocationConcurrents; } /** * Get 分片迁移并发速度 * @return ShardAllocationBytes 分片迁移并发速度 */ public Long getShardAllocationBytes() { return this.ShardAllocationBytes; } /** * Set 分片迁移并发速度 * @param ShardAllocationBytes 分片迁移并发速度 */ public void setShardAllocationBytes(Long ShardAllocationBytes) { this.ShardAllocationBytes = ShardAllocationBytes; } /** * Get 是否开启置放群组异步任务 * @return EnableScheduleRecoverGroup 是否开启置放群组异步任务 */ public Boolean getEnableScheduleRecoverGroup() { return this.EnableScheduleRecoverGroup; } /** * Set 是否开启置放群组异步任务 * @param EnableScheduleRecoverGroup 是否开启置放群组异步任务 */ public void setEnableScheduleRecoverGroup(Boolean EnableScheduleRecoverGroup) { this.EnableScheduleRecoverGroup = EnableScheduleRecoverGroup; } /** * Get 置放群组异步任务时间段 * @return EnableScheduleOperationDuration 置放群组异步任务时间段 */ public EnableScheduleOperationDuration getEnableScheduleOperationDuration() { return this.EnableScheduleOperationDuration; } /** * Set 置放群组异步任务时间段 * @param EnableScheduleOperationDuration 置放群组异步任务时间段 */ public void setEnableScheduleOperationDuration(EnableScheduleOperationDuration EnableScheduleOperationDuration) { this.EnableScheduleOperationDuration = EnableScheduleOperationDuration; } public UpgradeInstanceRequest() { } /** * 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 UpgradeInstanceRequest(UpgradeInstanceRequest source) { if (source.InstanceId != null) { this.InstanceId = new String(source.InstanceId); } if (source.EsVersion != null) { this.EsVersion = new String(source.EsVersion); } if (source.CheckOnly != null) { this.CheckOnly = new Boolean(source.CheckOnly); } if (source.LicenseType != null) { this.LicenseType = new String(source.LicenseType); } if (source.BasicSecurityType != null) { this.BasicSecurityType = new Long(source.BasicSecurityType); } if (source.UpgradeMode != null) { this.UpgradeMode = new String(source.UpgradeMode); } if (source.CosBackup != null) { this.CosBackup = new Boolean(source.CosBackup); } if (source.SkipCheckForceRestart != null) { this.SkipCheckForceRestart = new Boolean(source.SkipCheckForceRestart); } if (source.CvmDelayOnlineTime != null) { this.CvmDelayOnlineTime = new Long(source.CvmDelayOnlineTime); } if (source.ShardAllocationConcurrents != null) { this.ShardAllocationConcurrents = new Long(source.ShardAllocationConcurrents); } if (source.ShardAllocationBytes != null) { this.ShardAllocationBytes = new Long(source.ShardAllocationBytes); } if (source.EnableScheduleRecoverGroup != null) { this.EnableScheduleRecoverGroup = new Boolean(source.EnableScheduleRecoverGroup); } if (source.EnableScheduleOperationDuration != null) { this.EnableScheduleOperationDuration = new EnableScheduleOperationDuration(source.EnableScheduleOperationDuration); } } /** * 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 + "EsVersion", this.EsVersion); this.setParamSimple(map, prefix + "CheckOnly", this.CheckOnly); this.setParamSimple(map, prefix + "LicenseType", this.LicenseType); this.setParamSimple(map, prefix + "BasicSecurityType", this.BasicSecurityType); this.setParamSimple(map, prefix + "UpgradeMode", this.UpgradeMode); this.setParamSimple(map, prefix + "CosBackup", this.CosBackup); this.setParamSimple(map, prefix + "SkipCheckForceRestart", this.SkipCheckForceRestart); this.setParamSimple(map, prefix + "CvmDelayOnlineTime", this.CvmDelayOnlineTime); this.setParamSimple(map, prefix + "ShardAllocationConcurrents", this.ShardAllocationConcurrents); this.setParamSimple(map, prefix + "ShardAllocationBytes", this.ShardAllocationBytes); this.setParamSimple(map, prefix + "EnableScheduleRecoverGroup", this.EnableScheduleRecoverGroup); this.setParamObj(map, prefix + "EnableScheduleOperationDuration.", this.EnableScheduleOperationDuration); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy