com.tencentcloudapi.cynosdb.v20190107.models.ParamInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.cynosdb.v20190107.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 ParamInfo extends AbstractModel {
/**
* Current value
*/
@SerializedName("CurrentValue")
@Expose
private String CurrentValue;
/**
* Default value
*/
@SerializedName("Default")
@Expose
private String Default;
/**
* List of valid values when parameter type is `enum`, `string` or `bool`.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("EnumValue")
@Expose
private String [] EnumValue;
/**
* Maximum value when parameter type is `float` or `integer`.
*/
@SerializedName("Max")
@Expose
private String Max;
/**
* Minimum value when parameter type is `float` or `integer`.
*/
@SerializedName("Min")
@Expose
private String Min;
/**
* Parameter name
*/
@SerializedName("ParamName")
@Expose
private String ParamName;
/**
* Whether to restart the instance for the modified parameters to take effect.
*/
@SerializedName("NeedReboot")
@Expose
private Long NeedReboot;
/**
* Parameter type: `integer`, `float`, `string`, `enum`, `bool`.
*/
@SerializedName("ParamType")
@Expose
private String ParamType;
/**
* Match type. Regex can be used when parameter type is `string`. Valid value: `multiVal`.
*/
@SerializedName("MatchType")
@Expose
private String MatchType;
/**
* Match values, which will be separated by semicolon when match type is `multiVal`.
*/
@SerializedName("MatchValue")
@Expose
private String MatchValue;
/**
* Parameter description
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* Whether it is global parameter
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("IsGlobal")
@Expose
private Long IsGlobal;
/**
* Whether the parameter can be modified
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("ModifiableInfo")
@Expose
private ModifiableInfo ModifiableInfo;
/**
* Whether it is a function
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("IsFunc")
@Expose
private Boolean IsFunc;
/**
* Function
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Func")
@Expose
private String Func;
/**
* Get Current value
* @return CurrentValue Current value
*/
public String getCurrentValue() {
return this.CurrentValue;
}
/**
* Set Current value
* @param CurrentValue Current value
*/
public void setCurrentValue(String CurrentValue) {
this.CurrentValue = CurrentValue;
}
/**
* Get Default value
* @return Default Default value
*/
public String getDefault() {
return this.Default;
}
/**
* Set Default value
* @param Default Default value
*/
public void setDefault(String Default) {
this.Default = Default;
}
/**
* Get List of valid values when parameter type is `enum`, `string` or `bool`.
Note: This field may return null, indicating that no valid values can be obtained.
* @return EnumValue List of valid values when parameter type is `enum`, `string` or `bool`.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public String [] getEnumValue() {
return this.EnumValue;
}
/**
* Set List of valid values when parameter type is `enum`, `string` or `bool`.
Note: This field may return null, indicating that no valid values can be obtained.
* @param EnumValue List of valid values when parameter type is `enum`, `string` or `bool`.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setEnumValue(String [] EnumValue) {
this.EnumValue = EnumValue;
}
/**
* Get Maximum value when parameter type is `float` or `integer`.
* @return Max Maximum value when parameter type is `float` or `integer`.
*/
public String getMax() {
return this.Max;
}
/**
* Set Maximum value when parameter type is `float` or `integer`.
* @param Max Maximum value when parameter type is `float` or `integer`.
*/
public void setMax(String Max) {
this.Max = Max;
}
/**
* Get Minimum value when parameter type is `float` or `integer`.
* @return Min Minimum value when parameter type is `float` or `integer`.
*/
public String getMin() {
return this.Min;
}
/**
* Set Minimum value when parameter type is `float` or `integer`.
* @param Min Minimum value when parameter type is `float` or `integer`.
*/
public void setMin(String Min) {
this.Min = Min;
}
/**
* Get Parameter name
* @return ParamName Parameter name
*/
public String getParamName() {
return this.ParamName;
}
/**
* Set Parameter name
* @param ParamName Parameter name
*/
public void setParamName(String ParamName) {
this.ParamName = ParamName;
}
/**
* Get Whether to restart the instance for the modified parameters to take effect.
* @return NeedReboot Whether to restart the instance for the modified parameters to take effect.
*/
public Long getNeedReboot() {
return this.NeedReboot;
}
/**
* Set Whether to restart the instance for the modified parameters to take effect.
* @param NeedReboot Whether to restart the instance for the modified parameters to take effect.
*/
public void setNeedReboot(Long NeedReboot) {
this.NeedReboot = NeedReboot;
}
/**
* Get Parameter type: `integer`, `float`, `string`, `enum`, `bool`.
* @return ParamType Parameter type: `integer`, `float`, `string`, `enum`, `bool`.
*/
public String getParamType() {
return this.ParamType;
}
/**
* Set Parameter type: `integer`, `float`, `string`, `enum`, `bool`.
* @param ParamType Parameter type: `integer`, `float`, `string`, `enum`, `bool`.
*/
public void setParamType(String ParamType) {
this.ParamType = ParamType;
}
/**
* Get Match type. Regex can be used when parameter type is `string`. Valid value: `multiVal`.
* @return MatchType Match type. Regex can be used when parameter type is `string`. Valid value: `multiVal`.
*/
public String getMatchType() {
return this.MatchType;
}
/**
* Set Match type. Regex can be used when parameter type is `string`. Valid value: `multiVal`.
* @param MatchType Match type. Regex can be used when parameter type is `string`. Valid value: `multiVal`.
*/
public void setMatchType(String MatchType) {
this.MatchType = MatchType;
}
/**
* Get Match values, which will be separated by semicolon when match type is `multiVal`.
* @return MatchValue Match values, which will be separated by semicolon when match type is `multiVal`.
*/
public String getMatchValue() {
return this.MatchValue;
}
/**
* Set Match values, which will be separated by semicolon when match type is `multiVal`.
* @param MatchValue Match values, which will be separated by semicolon when match type is `multiVal`.
*/
public void setMatchValue(String MatchValue) {
this.MatchValue = MatchValue;
}
/**
* Get Parameter description
* @return Description Parameter description
*/
public String getDescription() {
return this.Description;
}
/**
* Set Parameter description
* @param Description Parameter description
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get Whether it is global parameter
Note: This field may return null, indicating that no valid values can be obtained.
* @return IsGlobal Whether it is global parameter
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long getIsGlobal() {
return this.IsGlobal;
}
/**
* Set Whether it is global parameter
Note: This field may return null, indicating that no valid values can be obtained.
* @param IsGlobal Whether it is global parameter
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setIsGlobal(Long IsGlobal) {
this.IsGlobal = IsGlobal;
}
/**
* Get Whether the parameter can be modified
Note: This field may return null, indicating that no valid values can be obtained.
* @return ModifiableInfo Whether the parameter can be modified
Note: This field may return null, indicating that no valid values can be obtained.
*/
public ModifiableInfo getModifiableInfo() {
return this.ModifiableInfo;
}
/**
* Set Whether the parameter can be modified
Note: This field may return null, indicating that no valid values can be obtained.
* @param ModifiableInfo Whether the parameter can be modified
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setModifiableInfo(ModifiableInfo ModifiableInfo) {
this.ModifiableInfo = ModifiableInfo;
}
/**
* Get Whether it is a function
Note: This field may return null, indicating that no valid values can be obtained.
* @return IsFunc Whether it is a function
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Boolean getIsFunc() {
return this.IsFunc;
}
/**
* Set Whether it is a function
Note: This field may return null, indicating that no valid values can be obtained.
* @param IsFunc Whether it is a function
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setIsFunc(Boolean IsFunc) {
this.IsFunc = IsFunc;
}
/**
* Get Function
Note: This field may return null, indicating that no valid values can be obtained.
* @return Func Function
Note: This field may return null, indicating that no valid values can be obtained.
*/
public String getFunc() {
return this.Func;
}
/**
* Set Function
Note: This field may return null, indicating that no valid values can be obtained.
* @param Func Function
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setFunc(String Func) {
this.Func = Func;
}
public ParamInfo() {
}
/**
* 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 ParamInfo(ParamInfo source) {
if (source.CurrentValue != null) {
this.CurrentValue = new String(source.CurrentValue);
}
if (source.Default != null) {
this.Default = new String(source.Default);
}
if (source.EnumValue != null) {
this.EnumValue = new String[source.EnumValue.length];
for (int i = 0; i < source.EnumValue.length; i++) {
this.EnumValue[i] = new String(source.EnumValue[i]);
}
}
if (source.Max != null) {
this.Max = new String(source.Max);
}
if (source.Min != null) {
this.Min = new String(source.Min);
}
if (source.ParamName != null) {
this.ParamName = new String(source.ParamName);
}
if (source.NeedReboot != null) {
this.NeedReboot = new Long(source.NeedReboot);
}
if (source.ParamType != null) {
this.ParamType = new String(source.ParamType);
}
if (source.MatchType != null) {
this.MatchType = new String(source.MatchType);
}
if (source.MatchValue != null) {
this.MatchValue = new String(source.MatchValue);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.IsGlobal != null) {
this.IsGlobal = new Long(source.IsGlobal);
}
if (source.ModifiableInfo != null) {
this.ModifiableInfo = new ModifiableInfo(source.ModifiableInfo);
}
if (source.IsFunc != null) {
this.IsFunc = new Boolean(source.IsFunc);
}
if (source.Func != null) {
this.Func = new String(source.Func);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "CurrentValue", this.CurrentValue);
this.setParamSimple(map, prefix + "Default", this.Default);
this.setParamArraySimple(map, prefix + "EnumValue.", this.EnumValue);
this.setParamSimple(map, prefix + "Max", this.Max);
this.setParamSimple(map, prefix + "Min", this.Min);
this.setParamSimple(map, prefix + "ParamName", this.ParamName);
this.setParamSimple(map, prefix + "NeedReboot", this.NeedReboot);
this.setParamSimple(map, prefix + "ParamType", this.ParamType);
this.setParamSimple(map, prefix + "MatchType", this.MatchType);
this.setParamSimple(map, prefix + "MatchValue", this.MatchValue);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamSimple(map, prefix + "IsGlobal", this.IsGlobal);
this.setParamObj(map, prefix + "ModifiableInfo.", this.ModifiableInfo);
this.setParamSimple(map, prefix + "IsFunc", this.IsFunc);
this.setParamSimple(map, prefix + "Func", this.Func);
}
}