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

com.tencentcloudapi.es.v20180416.models.UpgradeLicenseRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1034
Show newest version
/*
 * 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class UpgradeLicenseRequest extends AbstractModel{

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

    /**
    * License type 
  • oss: Open Source Edition
  • basic: Basic Edition
  • platinum: Platinum Edition
  • Default value: Platinum */ @SerializedName("LicenseType") @Expose private String LicenseType; /** * Whether to automatically use vouchers
  • 0: No
  • 1: Yes
  • Default value: 0 */ @SerializedName("AutoVoucher") @Expose private Long AutoVoucher; /** * List of voucher IDs (only one voucher can be specified at a time currently) */ @SerializedName("VoucherIds") @Expose private String [] VoucherIds; /** * Whether to enable X-Pack security authentication in Basic Edition 6.8 (and above)
  • 1: disabled
  • 2: enabled
  • */ @SerializedName("BasicSecurityType") @Expose private Long BasicSecurityType; /** * Whether to force restart
  • true: yes
  • false: no
  • Default value: false */ @SerializedName("ForceRestart") @Expose private Boolean ForceRestart; /** * Get Instance ID * @return InstanceId Instance ID */ public String getInstanceId() { return this.InstanceId; } /** * Set Instance ID * @param InstanceId Instance ID */ public void setInstanceId(String InstanceId) { this.InstanceId = InstanceId; } /** * Get License type
  • oss: Open Source Edition
  • basic: Basic Edition
  • platinum: Platinum Edition
  • Default value: Platinum * @return LicenseType License type
  • oss: Open Source Edition
  • basic: Basic Edition
  • platinum: Platinum Edition
  • Default value: Platinum */ public String getLicenseType() { return this.LicenseType; } /** * Set License type
  • oss: Open Source Edition
  • basic: Basic Edition
  • platinum: Platinum Edition
  • Default value: Platinum * @param LicenseType License type
  • oss: Open Source Edition
  • basic: Basic Edition
  • platinum: Platinum Edition
  • Default value: Platinum */ public void setLicenseType(String LicenseType) { this.LicenseType = LicenseType; } /** * Get Whether to automatically use vouchers
  • 0: No
  • 1: Yes
  • Default value: 0 * @return AutoVoucher Whether to automatically use vouchers
  • 0: No
  • 1: Yes
  • Default value: 0 */ public Long getAutoVoucher() { return this.AutoVoucher; } /** * Set Whether to automatically use vouchers
  • 0: No
  • 1: Yes
  • Default value: 0 * @param AutoVoucher Whether to automatically use vouchers
  • 0: No
  • 1: Yes
  • Default value: 0 */ public void setAutoVoucher(Long AutoVoucher) { this.AutoVoucher = AutoVoucher; } /** * Get List of voucher IDs (only one voucher can be specified at a time currently) * @return VoucherIds List of voucher IDs (only one voucher can be specified at a time currently) */ public String [] getVoucherIds() { return this.VoucherIds; } /** * Set List of voucher IDs (only one voucher can be specified at a time currently) * @param VoucherIds List of voucher IDs (only one voucher can be specified at a time currently) */ public void setVoucherIds(String [] VoucherIds) { this.VoucherIds = VoucherIds; } /** * Get Whether to enable X-Pack security authentication in Basic Edition 6.8 (and above)
  • 1: disabled
  • 2: enabled
  • * @return BasicSecurityType Whether to enable X-Pack security authentication in Basic Edition 6.8 (and above)
  • 1: disabled
  • 2: enabled
  • */ public Long getBasicSecurityType() { return this.BasicSecurityType; } /** * Set Whether to enable X-Pack security authentication in Basic Edition 6.8 (and above)
  • 1: disabled
  • 2: enabled
  • * @param BasicSecurityType Whether to enable X-Pack security authentication in Basic Edition 6.8 (and above)
  • 1: disabled
  • 2: enabled
  • */ public void setBasicSecurityType(Long BasicSecurityType) { this.BasicSecurityType = BasicSecurityType; } /** * Get Whether to force restart
  • true: yes
  • false: no
  • Default value: false * @return ForceRestart Whether to force restart
  • true: yes
  • false: no
  • Default value: false */ public Boolean getForceRestart() { return this.ForceRestart; } /** * Set Whether to force restart
  • true: yes
  • false: no
  • Default value: false * @param ForceRestart Whether to force restart
  • true: yes
  • false: no
  • Default value: false */ public void setForceRestart(Boolean ForceRestart) { this.ForceRestart = ForceRestart; } public UpgradeLicenseRequest() { } /** * 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 UpgradeLicenseRequest(UpgradeLicenseRequest source) { if (source.InstanceId != null) { this.InstanceId = new String(source.InstanceId); } if (source.LicenseType != null) { this.LicenseType = new String(source.LicenseType); } 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.BasicSecurityType != null) { this.BasicSecurityType = new Long(source.BasicSecurityType); } if (source.ForceRestart != null) { this.ForceRestart = new Boolean(source.ForceRestart); } } /** * 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 + "LicenseType", this.LicenseType); this.setParamSimple(map, prefix + "AutoVoucher", this.AutoVoucher); this.setParamArraySimple(map, prefix + "VoucherIds.", this.VoucherIds); this.setParamSimple(map, prefix + "BasicSecurityType", this.BasicSecurityType); this.setParamSimple(map, prefix + "ForceRestart", this.ForceRestart); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy