
com.tencentcloudapi.teo.v20220901.models.RuleExtraParameter 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.teo.v20220901.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class RuleExtraParameter extends AbstractModel{
/**
* 参数名,取值有:
Action:修改 HTTP 头部所需参数,RuleAction 选择 RewirteAction;
StatusCode:状态码相关功能所需参数,RuleAction 选择 CodeAction。
*/
@SerializedName("Id")
@Expose
private String Id;
/**
* 参数值类型。
CHOICE:参数值只能在 Values 中选择;
CUSTOM_NUM:参数值用户自定义,整型类型;
CUSTOM_STRING:参数值用户自定义,字符串类型。
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* 可选参数值。
注意:当 Id 的值为 StatusCode 时数组中的值为整型,填写参数值时请填写字符串的整型数值。
*/
@SerializedName("Choices")
@Expose
private String [] Choices;
/**
* Get 参数名,取值有:
Action:修改 HTTP 头部所需参数,RuleAction 选择 RewirteAction;
StatusCode:状态码相关功能所需参数,RuleAction 选择 CodeAction。
* @return Id 参数名,取值有:
Action:修改 HTTP 头部所需参数,RuleAction 选择 RewirteAction;
StatusCode:状态码相关功能所需参数,RuleAction 选择 CodeAction。
*/
public String getId() {
return this.Id;
}
/**
* Set 参数名,取值有:
Action:修改 HTTP 头部所需参数,RuleAction 选择 RewirteAction;
StatusCode:状态码相关功能所需参数,RuleAction 选择 CodeAction。
* @param Id 参数名,取值有:
Action:修改 HTTP 头部所需参数,RuleAction 选择 RewirteAction;
StatusCode:状态码相关功能所需参数,RuleAction 选择 CodeAction。
*/
public void setId(String Id) {
this.Id = Id;
}
/**
* Get 参数值类型。
CHOICE:参数值只能在 Values 中选择;
CUSTOM_NUM:参数值用户自定义,整型类型;
CUSTOM_STRING:参数值用户自定义,字符串类型。
* @return Type 参数值类型。
CHOICE:参数值只能在 Values 中选择;
CUSTOM_NUM:参数值用户自定义,整型类型;
CUSTOM_STRING:参数值用户自定义,字符串类型。
*/
public String getType() {
return this.Type;
}
/**
* Set 参数值类型。
CHOICE:参数值只能在 Values 中选择;
CUSTOM_NUM:参数值用户自定义,整型类型;
CUSTOM_STRING:参数值用户自定义,字符串类型。
* @param Type 参数值类型。
CHOICE:参数值只能在 Values 中选择;
CUSTOM_NUM:参数值用户自定义,整型类型;
CUSTOM_STRING:参数值用户自定义,字符串类型。
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get 可选参数值。
注意:当 Id 的值为 StatusCode 时数组中的值为整型,填写参数值时请填写字符串的整型数值。
* @return Choices 可选参数值。
注意:当 Id 的值为 StatusCode 时数组中的值为整型,填写参数值时请填写字符串的整型数值。
*/
public String [] getChoices() {
return this.Choices;
}
/**
* Set 可选参数值。
注意:当 Id 的值为 StatusCode 时数组中的值为整型,填写参数值时请填写字符串的整型数值。
* @param Choices 可选参数值。
注意:当 Id 的值为 StatusCode 时数组中的值为整型,填写参数值时请填写字符串的整型数值。
*/
public void setChoices(String [] Choices) {
this.Choices = Choices;
}
public RuleExtraParameter() {
}
/**
* 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 RuleExtraParameter(RuleExtraParameter source) {
if (source.Id != null) {
this.Id = new String(source.Id);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.Choices != null) {
this.Choices = new String[source.Choices.length];
for (int i = 0; i < source.Choices.length; i++) {
this.Choices[i] = new String(source.Choices[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Id", this.Id);
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamArraySimple(map, prefix + "Choices.", this.Choices);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy