com.pulumi.alicloud.dns.outputs.GetGtmInstancesInstanceAlertConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.dns.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetGtmInstancesInstanceAlertConfig {
/**
* @return Whether to configure DingTalk notifications.
*
*/
private Boolean dingtalkNotice;
/**
* @return Whether to configure mail notification.
*
*/
private Boolean emailNotice;
/**
* @return The Alarm Event Type.
*
*/
private String noticeType;
/**
* @return Whether to configure SMS notification.
*
*/
private Boolean smsNotice;
private GetGtmInstancesInstanceAlertConfig() {}
/**
* @return Whether to configure DingTalk notifications.
*
*/
public Boolean dingtalkNotice() {
return this.dingtalkNotice;
}
/**
* @return Whether to configure mail notification.
*
*/
public Boolean emailNotice() {
return this.emailNotice;
}
/**
* @return The Alarm Event Type.
*
*/
public String noticeType() {
return this.noticeType;
}
/**
* @return Whether to configure SMS notification.
*
*/
public Boolean smsNotice() {
return this.smsNotice;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetGtmInstancesInstanceAlertConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean dingtalkNotice;
private Boolean emailNotice;
private String noticeType;
private Boolean smsNotice;
public Builder() {}
public Builder(GetGtmInstancesInstanceAlertConfig defaults) {
Objects.requireNonNull(defaults);
this.dingtalkNotice = defaults.dingtalkNotice;
this.emailNotice = defaults.emailNotice;
this.noticeType = defaults.noticeType;
this.smsNotice = defaults.smsNotice;
}
@CustomType.Setter
public Builder dingtalkNotice(Boolean dingtalkNotice) {
if (dingtalkNotice == null) {
throw new MissingRequiredPropertyException("GetGtmInstancesInstanceAlertConfig", "dingtalkNotice");
}
this.dingtalkNotice = dingtalkNotice;
return this;
}
@CustomType.Setter
public Builder emailNotice(Boolean emailNotice) {
if (emailNotice == null) {
throw new MissingRequiredPropertyException("GetGtmInstancesInstanceAlertConfig", "emailNotice");
}
this.emailNotice = emailNotice;
return this;
}
@CustomType.Setter
public Builder noticeType(String noticeType) {
if (noticeType == null) {
throw new MissingRequiredPropertyException("GetGtmInstancesInstanceAlertConfig", "noticeType");
}
this.noticeType = noticeType;
return this;
}
@CustomType.Setter
public Builder smsNotice(Boolean smsNotice) {
if (smsNotice == null) {
throw new MissingRequiredPropertyException("GetGtmInstancesInstanceAlertConfig", "smsNotice");
}
this.smsNotice = smsNotice;
return this;
}
public GetGtmInstancesInstanceAlertConfig build() {
final var _resultValue = new GetGtmInstancesInstanceAlertConfig();
_resultValue.dingtalkNotice = dingtalkNotice;
_resultValue.emailNotice = emailNotice;
_resultValue.noticeType = noticeType;
_resultValue.smsNotice = smsNotice;
return _resultValue;
}
}
}