com.tencentcloudapi.cdb.v20170320.models.ParameterDetail 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.cdb.v20170320.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 ParameterDetail extends AbstractModel {
/**
* Parameter name
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* Parameter type. Valid values: `integer`, `enum`, `float`, `string`, `func`
*/
@SerializedName("ParamType")
@Expose
private String ParamType;
/**
* Default value of the parameter
*/
@SerializedName("Default")
@Expose
private String Default;
/**
* Parameter description
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* Current value of the parameter
*/
@SerializedName("CurrentValue")
@Expose
private String CurrentValue;
/**
* Whether the database needs to be restarted for the modified parameter to take effect. Value range: 0 (no); 1 (yes)
*/
@SerializedName("NeedReboot")
@Expose
private Long NeedReboot;
/**
* Maximum value of the parameter
*/
@SerializedName("Max")
@Expose
private Long Max;
/**
* Minimum value of the parameter
*/
@SerializedName("Min")
@Expose
private Long Min;
/**
* Enumerated values of the parameter. It is null if the parameter is non-enumerated
*/
@SerializedName("EnumValue")
@Expose
private String [] EnumValue;
/**
* Maximum parameter value, which is valid only when `ParamType` is set to `func`
*/
@SerializedName("MaxFunc")
@Expose
private String MaxFunc;
/**
* Minimum parameter value, which is valid only when `ParamType` is set to `func`
*/
@SerializedName("MinFunc")
@Expose
private String MinFunc;
/**
* Whether the parameter can be modified Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("IsNotSupportEdit")
@Expose
private Boolean IsNotSupportEdit;
/**
* Get Parameter name
* @return Name Parameter name
*/
public String getName() {
return this.Name;
}
/**
* Set Parameter name
* @param Name Parameter name
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get Parameter type. Valid values: `integer`, `enum`, `float`, `string`, `func`
* @return ParamType Parameter type. Valid values: `integer`, `enum`, `float`, `string`, `func`
*/
public String getParamType() {
return this.ParamType;
}
/**
* Set Parameter type. Valid values: `integer`, `enum`, `float`, `string`, `func`
* @param ParamType Parameter type. Valid values: `integer`, `enum`, `float`, `string`, `func`
*/
public void setParamType(String ParamType) {
this.ParamType = ParamType;
}
/**
* Get Default value of the parameter
* @return Default Default value of the parameter
*/
public String getDefault() {
return this.Default;
}
/**
* Set Default value of the parameter
* @param Default Default value of the parameter
*/
public void setDefault(String Default) {
this.Default = Default;
}
/**
* 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 Current value of the parameter
* @return CurrentValue Current value of the parameter
*/
public String getCurrentValue() {
return this.CurrentValue;
}
/**
* Set Current value of the parameter
* @param CurrentValue Current value of the parameter
*/
public void setCurrentValue(String CurrentValue) {
this.CurrentValue = CurrentValue;
}
/**
* Get Whether the database needs to be restarted for the modified parameter to take effect. Value range: 0 (no); 1 (yes)
* @return NeedReboot Whether the database needs to be restarted for the modified parameter to take effect. Value range: 0 (no); 1 (yes)
*/
public Long getNeedReboot() {
return this.NeedReboot;
}
/**
* Set Whether the database needs to be restarted for the modified parameter to take effect. Value range: 0 (no); 1 (yes)
* @param NeedReboot Whether the database needs to be restarted for the modified parameter to take effect. Value range: 0 (no); 1 (yes)
*/
public void setNeedReboot(Long NeedReboot) {
this.NeedReboot = NeedReboot;
}
/**
* Get Maximum value of the parameter
* @return Max Maximum value of the parameter
*/
public Long getMax() {
return this.Max;
}
/**
* Set Maximum value of the parameter
* @param Max Maximum value of the parameter
*/
public void setMax(Long Max) {
this.Max = Max;
}
/**
* Get Minimum value of the parameter
* @return Min Minimum value of the parameter
*/
public Long getMin() {
return this.Min;
}
/**
* Set Minimum value of the parameter
* @param Min Minimum value of the parameter
*/
public void setMin(Long Min) {
this.Min = Min;
}
/**
* Get Enumerated values of the parameter. It is null if the parameter is non-enumerated
* @return EnumValue Enumerated values of the parameter. It is null if the parameter is non-enumerated
*/
public String [] getEnumValue() {
return this.EnumValue;
}
/**
* Set Enumerated values of the parameter. It is null if the parameter is non-enumerated
* @param EnumValue Enumerated values of the parameter. It is null if the parameter is non-enumerated
*/
public void setEnumValue(String [] EnumValue) {
this.EnumValue = EnumValue;
}
/**
* Get Maximum parameter value, which is valid only when `ParamType` is set to `func`
* @return MaxFunc Maximum parameter value, which is valid only when `ParamType` is set to `func`
*/
public String getMaxFunc() {
return this.MaxFunc;
}
/**
* Set Maximum parameter value, which is valid only when `ParamType` is set to `func`
* @param MaxFunc Maximum parameter value, which is valid only when `ParamType` is set to `func`
*/
public void setMaxFunc(String MaxFunc) {
this.MaxFunc = MaxFunc;
}
/**
* Get Minimum parameter value, which is valid only when `ParamType` is set to `func`
* @return MinFunc Minimum parameter value, which is valid only when `ParamType` is set to `func`
*/
public String getMinFunc() {
return this.MinFunc;
}
/**
* Set Minimum parameter value, which is valid only when `ParamType` is set to `func`
* @param MinFunc Minimum parameter value, which is valid only when `ParamType` is set to `func`
*/
public void setMinFunc(String MinFunc) {
this.MinFunc = MinFunc;
}
/**
* Get Whether the parameter can be modified Note: This field may return null, indicating that no valid values can be obtained.
* @return IsNotSupportEdit Whether the parameter can be modified Note: This field may return null, indicating that no valid values can be obtained.
*/
public Boolean getIsNotSupportEdit() {
return this.IsNotSupportEdit;
}
/**
* Set Whether the parameter can be modified Note: This field may return null, indicating that no valid values can be obtained.
* @param IsNotSupportEdit Whether the parameter can be modified Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setIsNotSupportEdit(Boolean IsNotSupportEdit) {
this.IsNotSupportEdit = IsNotSupportEdit;
}
public ParameterDetail() {
}
/**
* 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 ParameterDetail(ParameterDetail source) {
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.ParamType != null) {
this.ParamType = new String(source.ParamType);
}
if (source.Default != null) {
this.Default = new String(source.Default);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.CurrentValue != null) {
this.CurrentValue = new String(source.CurrentValue);
}
if (source.NeedReboot != null) {
this.NeedReboot = new Long(source.NeedReboot);
}
if (source.Max != null) {
this.Max = new Long(source.Max);
}
if (source.Min != null) {
this.Min = new Long(source.Min);
}
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.MaxFunc != null) {
this.MaxFunc = new String(source.MaxFunc);
}
if (source.MinFunc != null) {
this.MinFunc = new String(source.MinFunc);
}
if (source.IsNotSupportEdit != null) {
this.IsNotSupportEdit = new Boolean(source.IsNotSupportEdit);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "ParamType", this.ParamType);
this.setParamSimple(map, prefix + "Default", this.Default);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamSimple(map, prefix + "CurrentValue", this.CurrentValue);
this.setParamSimple(map, prefix + "NeedReboot", this.NeedReboot);
this.setParamSimple(map, prefix + "Max", this.Max);
this.setParamSimple(map, prefix + "Min", this.Min);
this.setParamArraySimple(map, prefix + "EnumValue.", this.EnumValue);
this.setParamSimple(map, prefix + "MaxFunc", this.MaxFunc);
this.setParamSimple(map, prefix + "MinFunc", this.MinFunc);
this.setParamSimple(map, prefix + "IsNotSupportEdit", this.IsNotSupportEdit);
}
}