com.volcengine.model.tls.request.CreateAlarmNotifyGroupRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.model.tls.request;
import java.util.List;
import com.alibaba.fastjson.annotation.JSONField;
import com.volcengine.model.tls.Receiver;
import lombok.Data;
import lombok.NoArgsConstructor;
import static com.volcengine.model.tls.Const.*;
@Data
@NoArgsConstructor
public class CreateAlarmNotifyGroupRequest {
@JSONField(name = ALARM_NOTIFY_GROUP_NAME)
String alarmNotifyGroupName;
@JSONField(name = NOTIFY_TYPE)
List notifyType;
@JSONField(name = RECEIVERS)
List receivers;
@JSONField(name = IAM_PROJECT_NAME)
String iamProjectName;
/**
* @param alarmNotifyGroupName 告警通知组名称
* @param notifyType 告警通知的类型Trigger告警触发、Recovery告警恢复
* @param receivers 接收告警的IAM用户列表
*/
public CreateAlarmNotifyGroupRequest(String alarmNotifyGroupName, List notifyType, List receivers) {
this.alarmNotifyGroupName = alarmNotifyGroupName;
this.notifyType = notifyType;
this.receivers = receivers;
}
/**
* @param alarmNotifyGroupName 告警通知组名称
* @param notifyType 告警通知的类型Trigger告警触发、Recovery告警恢复
* @param receivers 接收告警的IAM用户列表
* @param iamProjectName 告警组所属的IAM项目名称
*/
public CreateAlarmNotifyGroupRequest(String alarmNotifyGroupName, List notifyType, List receivers, String iamProjectName) {
this.alarmNotifyGroupName = alarmNotifyGroupName;
this.notifyType = notifyType;
this.receivers = receivers;
this.iamProjectName = iamProjectName;
}
/**
* @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 告警组所属的IAM项目名称
*/
public String getIamProjectName() {
return iamProjectName;
}
/**
* @param iamProjectName 告警组所属的IAM项目名称
*/
public void setIamProjectName(String iamProjectName) {
this.iamProjectName = iamProjectName;
}
/**
* @return 检验必填参数,true合法false不合法
*/
public boolean CheckValidation() {
if (this.alarmNotifyGroupName == null || this.notifyType == null || this.receivers == null) {
return false;
}
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy