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

com.volcengine.model.tls.request.ModifyAlarmNotifyGroupRequest Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
package com.volcengine.model.tls.request;

import com.alibaba.fastjson.annotation.JSONField;
import com.volcengine.model.tls.Receiver;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

import static com.volcengine.model.tls.Const.*;

@Data
@NoArgsConstructor
public class ModifyAlarmNotifyGroupRequest {
    @JSONField(name = ALARM_NOTIFY_GROUP_ID)
    String alarmNotifyGroupId;
    @JSONField(name = ALARM_NOTIFY_GROUP_NAME)
    String alarmNotifyGroupName;
    @JSONField(name = NOTIFY_TYPE)
    List notifyType;
    @JSONField(name = RECEIVERS)
    List receivers;

    /**
     * @param alarmNotifyGroupId   告警通知组 ID
     * @param alarmNotifyGroupName 告警通知组名称
     * @param notifyType           告警通知的类型 Trigger告警触发、Recovery告警恢复
     * @param receivers            接收告警的 IAM 用户列表
     */
    public ModifyAlarmNotifyGroupRequest(String alarmNotifyGroupId, String alarmNotifyGroupName, List notifyType, List receivers) {
        this.alarmNotifyGroupId = alarmNotifyGroupId;
        this.alarmNotifyGroupName = alarmNotifyGroupName;
        this.notifyType = notifyType;
        this.receivers = receivers;
    }

    /**
     * @return 告警通知组 ID
     */
    public String getAlarmNotifyGroupId() {
        return alarmNotifyGroupId;
    }

    /**
     * @param alarmNotifyGroupId 告警通知组 ID
     */
    public void setAlarmNotifyGroupId(String alarmNotifyGroupId) {
        this.alarmNotifyGroupId = alarmNotifyGroupId;
    }

    /**
     * @return 告警通知组名称
     */
    public String getAlarmNotifyGroupName() {
        return alarmNotifyGroupName;
    }

    /**
     * @param alarmNotifyGroupName 告警通知组名称
     */
    public void setAlarmNotifyGroupName(String alarmNotifyGroupName) {
        this.alarmNotifyGroupName = alarmNotifyGroupName;
    }

    /**
     * @return 告警通知的类型 Trigger告警触发、Recovery告警恢复
     */
    public List getNotifyType() {
        return notifyType;
    }

    /**
     * @param notifyType 告警通知的类型 Trigger告警触发、Recovery告警恢复
     */
    public void setNotifyType(List notifyType) {
        this.notifyType = notifyType;
    }

    /**
     * @return 接收告警的 IAM 用户列表
     */
    public List getReceivers() {
        return receivers;
    }

    /**
     * @param receivers 接收告警的 IAM 用户列表
     */
    public void setReceivers(List receivers) {
        this.receivers = receivers;
    }

    /**
     * @return 检验必填参数,true合法false不合法
     */
    public boolean CheckValidation() {
        if (this.alarmNotifyGroupId == null) {
            return false;
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy