
com.tencentcloudapi.eb.v20210416.models.Rule 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.eb.v20210416.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class Rule extends AbstractModel{
/**
* 状态
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 修改时间
*/
@SerializedName("ModTime")
@Expose
private String ModTime;
/**
* 使能开关
*/
@SerializedName("Enable")
@Expose
private Boolean Enable;
/**
* 描述
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* 规则ID
*/
@SerializedName("RuleId")
@Expose
private String RuleId;
/**
* 创建时间
*/
@SerializedName("AddTime")
@Expose
private String AddTime;
/**
* 事件集ID
*/
@SerializedName("EventBusId")
@Expose
private String EventBusId;
/**
* 规则名称
*/
@SerializedName("RuleName")
@Expose
private String RuleName;
/**
* Target 简要信息
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Targets")
@Expose
private TargetBrief [] Targets;
/**
* rule设置的dlq规则. 可能为null
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("DeadLetterConfig")
@Expose
private DeadLetterConfig DeadLetterConfig;
/**
* Get 状态
* @return Status 状态
*/
public String getStatus() {
return this.Status;
}
/**
* Set 状态
* @param Status 状态
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 修改时间
* @return ModTime 修改时间
*/
public String getModTime() {
return this.ModTime;
}
/**
* Set 修改时间
* @param ModTime 修改时间
*/
public void setModTime(String ModTime) {
this.ModTime = ModTime;
}
/**
* Get 使能开关
* @return Enable 使能开关
*/
public Boolean getEnable() {
return this.Enable;
}
/**
* Set 使能开关
* @param Enable 使能开关
*/
public void setEnable(Boolean Enable) {
this.Enable = Enable;
}
/**
* Get 描述
* @return Description 描述
*/
public String getDescription() {
return this.Description;
}
/**
* Set 描述
* @param Description 描述
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get 规则ID
* @return RuleId 规则ID
*/
public String getRuleId() {
return this.RuleId;
}
/**
* Set 规则ID
* @param RuleId 规则ID
*/
public void setRuleId(String RuleId) {
this.RuleId = RuleId;
}
/**
* Get 创建时间
* @return AddTime 创建时间
*/
public String getAddTime() {
return this.AddTime;
}
/**
* Set 创建时间
* @param AddTime 创建时间
*/
public void setAddTime(String AddTime) {
this.AddTime = AddTime;
}
/**
* Get 事件集ID
* @return EventBusId 事件集ID
*/
public String getEventBusId() {
return this.EventBusId;
}
/**
* Set 事件集ID
* @param EventBusId 事件集ID
*/
public void setEventBusId(String EventBusId) {
this.EventBusId = EventBusId;
}
/**
* Get 规则名称
* @return RuleName 规则名称
*/
public String getRuleName() {
return this.RuleName;
}
/**
* Set 规则名称
* @param RuleName 规则名称
*/
public void setRuleName(String RuleName) {
this.RuleName = RuleName;
}
/**
* Get Target 简要信息
注意:此字段可能返回 null,表示取不到有效值。
* @return Targets Target 简要信息
注意:此字段可能返回 null,表示取不到有效值。
*/
public TargetBrief [] getTargets() {
return this.Targets;
}
/**
* Set Target 简要信息
注意:此字段可能返回 null,表示取不到有效值。
* @param Targets Target 简要信息
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setTargets(TargetBrief [] Targets) {
this.Targets = Targets;
}
/**
* Get rule设置的dlq规则. 可能为null
注意:此字段可能返回 null,表示取不到有效值。
* @return DeadLetterConfig rule设置的dlq规则. 可能为null
注意:此字段可能返回 null,表示取不到有效值。
*/
public DeadLetterConfig getDeadLetterConfig() {
return this.DeadLetterConfig;
}
/**
* Set rule设置的dlq规则. 可能为null
注意:此字段可能返回 null,表示取不到有效值。
* @param DeadLetterConfig rule设置的dlq规则. 可能为null
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setDeadLetterConfig(DeadLetterConfig DeadLetterConfig) {
this.DeadLetterConfig = DeadLetterConfig;
}
public Rule() {
}
/**
* 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 Rule(Rule source) {
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.ModTime != null) {
this.ModTime = new String(source.ModTime);
}
if (source.Enable != null) {
this.Enable = new Boolean(source.Enable);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.RuleId != null) {
this.RuleId = new String(source.RuleId);
}
if (source.AddTime != null) {
this.AddTime = new String(source.AddTime);
}
if (source.EventBusId != null) {
this.EventBusId = new String(source.EventBusId);
}
if (source.RuleName != null) {
this.RuleName = new String(source.RuleName);
}
if (source.Targets != null) {
this.Targets = new TargetBrief[source.Targets.length];
for (int i = 0; i < source.Targets.length; i++) {
this.Targets[i] = new TargetBrief(source.Targets[i]);
}
}
if (source.DeadLetterConfig != null) {
this.DeadLetterConfig = new DeadLetterConfig(source.DeadLetterConfig);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "ModTime", this.ModTime);
this.setParamSimple(map, prefix + "Enable", this.Enable);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamSimple(map, prefix + "RuleId", this.RuleId);
this.setParamSimple(map, prefix + "AddTime", this.AddTime);
this.setParamSimple(map, prefix + "EventBusId", this.EventBusId);
this.setParamSimple(map, prefix + "RuleName", this.RuleName);
this.setParamArrayObj(map, prefix + "Targets.", this.Targets);
this.setParamObj(map, prefix + "DeadLetterConfig.", this.DeadLetterConfig);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy