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

com.tencentcloudapi.teo.v20220901.models.RuleChoicePropertiesItem 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.teo.v20220901.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 RuleChoicePropertiesItem extends AbstractModel {

    /**
    * The parameter name.
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * The parameter value type.
  • CHOICE: The parameter value can be selected only from `Values`.
  • TOGGLE: The parameter value is of switch type and can be selected from `ChoicesValue`.
  • CUSTOM_NUM: The parameter value is a custom integer.
  • CUSTOM_STRING: The parameter value is a custom string.
  • */ @SerializedName("Type") @Expose private String Type; /** * Valid parameter values. Note: If `Type` is `CUSTOM_NUM` or `CUSTOM_STRING`, this parameter will be an empty array. */ @SerializedName("ChoicesValue") @Expose private String [] ChoicesValue; /** * Minimum value. If both `Min` and `Max` are set to `0`, this parameter does not take effect. */ @SerializedName("Min") @Expose private Long Min; /** * Maximum value. If both `Min` and `Max` are set to `0`, this parameter does not take effect. */ @SerializedName("Max") @Expose private Long Max; /** * Whether multiple values can be selected or entered. */ @SerializedName("IsMultiple") @Expose private Boolean IsMultiple; /** * Whether the parameter can be left empty. */ @SerializedName("IsAllowEmpty") @Expose private Boolean IsAllowEmpty; /** * Special parameter.
  • NULL: Select `NormalAction` for `RuleAction`.
  • If the member parameter `Id` is `Action`, select `RewirteAction` for `RuleAction`.
  • If the member parameter `Id` is `StatusCode`, select `CodeAction` for `RuleAction`.
  • */ @SerializedName("ExtraParameter") @Expose private RuleExtraParameter ExtraParameter; /** * Get The parameter name. * @return Name The parameter name. */ public String getName() { return this.Name; } /** * Set The parameter name. * @param Name The parameter name. */ public void setName(String Name) { this.Name = Name; } /** * Get The parameter value type.
  • CHOICE: The parameter value can be selected only from `Values`.
  • TOGGLE: The parameter value is of switch type and can be selected from `ChoicesValue`.
  • CUSTOM_NUM: The parameter value is a custom integer.
  • CUSTOM_STRING: The parameter value is a custom string.
  • * @return Type The parameter value type.
  • CHOICE: The parameter value can be selected only from `Values`.
  • TOGGLE: The parameter value is of switch type and can be selected from `ChoicesValue`.
  • CUSTOM_NUM: The parameter value is a custom integer.
  • CUSTOM_STRING: The parameter value is a custom string.
  • */ public String getType() { return this.Type; } /** * Set The parameter value type.
  • CHOICE: The parameter value can be selected only from `Values`.
  • TOGGLE: The parameter value is of switch type and can be selected from `ChoicesValue`.
  • CUSTOM_NUM: The parameter value is a custom integer.
  • CUSTOM_STRING: The parameter value is a custom string.
  • * @param Type The parameter value type.
  • CHOICE: The parameter value can be selected only from `Values`.
  • TOGGLE: The parameter value is of switch type and can be selected from `ChoicesValue`.
  • CUSTOM_NUM: The parameter value is a custom integer.
  • CUSTOM_STRING: The parameter value is a custom string.
  • */ public void setType(String Type) { this.Type = Type; } /** * Get Valid parameter values. Note: If `Type` is `CUSTOM_NUM` or `CUSTOM_STRING`, this parameter will be an empty array. * @return ChoicesValue Valid parameter values. Note: If `Type` is `CUSTOM_NUM` or `CUSTOM_STRING`, this parameter will be an empty array. */ public String [] getChoicesValue() { return this.ChoicesValue; } /** * Set Valid parameter values. Note: If `Type` is `CUSTOM_NUM` or `CUSTOM_STRING`, this parameter will be an empty array. * @param ChoicesValue Valid parameter values. Note: If `Type` is `CUSTOM_NUM` or `CUSTOM_STRING`, this parameter will be an empty array. */ public void setChoicesValue(String [] ChoicesValue) { this.ChoicesValue = ChoicesValue; } /** * Get Minimum value. If both `Min` and `Max` are set to `0`, this parameter does not take effect. * @return Min Minimum value. If both `Min` and `Max` are set to `0`, this parameter does not take effect. */ public Long getMin() { return this.Min; } /** * Set Minimum value. If both `Min` and `Max` are set to `0`, this parameter does not take effect. * @param Min Minimum value. If both `Min` and `Max` are set to `0`, this parameter does not take effect. */ public void setMin(Long Min) { this.Min = Min; } /** * Get Maximum value. If both `Min` and `Max` are set to `0`, this parameter does not take effect. * @return Max Maximum value. If both `Min` and `Max` are set to `0`, this parameter does not take effect. */ public Long getMax() { return this.Max; } /** * Set Maximum value. If both `Min` and `Max` are set to `0`, this parameter does not take effect. * @param Max Maximum value. If both `Min` and `Max` are set to `0`, this parameter does not take effect. */ public void setMax(Long Max) { this.Max = Max; } /** * Get Whether multiple values can be selected or entered. * @return IsMultiple Whether multiple values can be selected or entered. */ public Boolean getIsMultiple() { return this.IsMultiple; } /** * Set Whether multiple values can be selected or entered. * @param IsMultiple Whether multiple values can be selected or entered. */ public void setIsMultiple(Boolean IsMultiple) { this.IsMultiple = IsMultiple; } /** * Get Whether the parameter can be left empty. * @return IsAllowEmpty Whether the parameter can be left empty. */ public Boolean getIsAllowEmpty() { return this.IsAllowEmpty; } /** * Set Whether the parameter can be left empty. * @param IsAllowEmpty Whether the parameter can be left empty. */ public void setIsAllowEmpty(Boolean IsAllowEmpty) { this.IsAllowEmpty = IsAllowEmpty; } /** * Get Special parameter.
  • NULL: Select `NormalAction` for `RuleAction`.
  • If the member parameter `Id` is `Action`, select `RewirteAction` for `RuleAction`.
  • If the member parameter `Id` is `StatusCode`, select `CodeAction` for `RuleAction`.
  • * @return ExtraParameter Special parameter.
  • NULL: Select `NormalAction` for `RuleAction`.
  • If the member parameter `Id` is `Action`, select `RewirteAction` for `RuleAction`.
  • If the member parameter `Id` is `StatusCode`, select `CodeAction` for `RuleAction`.
  • */ public RuleExtraParameter getExtraParameter() { return this.ExtraParameter; } /** * Set Special parameter.
  • NULL: Select `NormalAction` for `RuleAction`.
  • If the member parameter `Id` is `Action`, select `RewirteAction` for `RuleAction`.
  • If the member parameter `Id` is `StatusCode`, select `CodeAction` for `RuleAction`.
  • * @param ExtraParameter Special parameter.
  • NULL: Select `NormalAction` for `RuleAction`.
  • If the member parameter `Id` is `Action`, select `RewirteAction` for `RuleAction`.
  • If the member parameter `Id` is `StatusCode`, select `CodeAction` for `RuleAction`.
  • */ public void setExtraParameter(RuleExtraParameter ExtraParameter) { this.ExtraParameter = ExtraParameter; } public RuleChoicePropertiesItem() { } /** * 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 RuleChoicePropertiesItem(RuleChoicePropertiesItem source) { if (source.Name != null) { this.Name = new String(source.Name); } if (source.Type != null) { this.Type = new String(source.Type); } if (source.ChoicesValue != null) { this.ChoicesValue = new String[source.ChoicesValue.length]; for (int i = 0; i < source.ChoicesValue.length; i++) { this.ChoicesValue[i] = new String(source.ChoicesValue[i]); } } if (source.Min != null) { this.Min = new Long(source.Min); } if (source.Max != null) { this.Max = new Long(source.Max); } if (source.IsMultiple != null) { this.IsMultiple = new Boolean(source.IsMultiple); } if (source.IsAllowEmpty != null) { this.IsAllowEmpty = new Boolean(source.IsAllowEmpty); } if (source.ExtraParameter != null) { this.ExtraParameter = new RuleExtraParameter(source.ExtraParameter); } } /** * 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 + "Type", this.Type); this.setParamArraySimple(map, prefix + "ChoicesValue.", this.ChoicesValue); this.setParamSimple(map, prefix + "Min", this.Min); this.setParamSimple(map, prefix + "Max", this.Max); this.setParamSimple(map, prefix + "IsMultiple", this.IsMultiple); this.setParamSimple(map, prefix + "IsAllowEmpty", this.IsAllowEmpty); this.setParamObj(map, prefix + "ExtraParameter.", this.ExtraParameter); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy