com.pulumi.alicloud.arms.outputs.GetDispatchRulesRule 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.arms.outputs;
import com.pulumi.alicloud.arms.outputs.GetDispatchRulesRuleGroupRule;
import com.pulumi.alicloud.arms.outputs.GetDispatchRulesRuleLabelMatchExpressionGrid;
import com.pulumi.alicloud.arms.outputs.GetDispatchRulesRuleNotifyRule;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetDispatchRulesRule {
/**
* @return Dispatch rule ID.
*
*/
private String dispatchRuleId;
/**
* @return The name of the dispatch rule.
*
*/
private String dispatchRuleName;
private String dispatchType;
/**
* @return Sets the event group.
*
*/
private List groupRules;
/**
* @return The ID of the Dispatch Rule.
*
*/
private String id;
/**
* @return Sets the dispatch rule.
*
*/
private List labelMatchExpressionGrids;
/**
* @return Sets the notification rule.
*
*/
private List notifyRules;
/**
* @return The resource status of Alert Dispatch Rule.
*
*/
private String status;
private GetDispatchRulesRule() {}
/**
* @return Dispatch rule ID.
*
*/
public String dispatchRuleId() {
return this.dispatchRuleId;
}
/**
* @return The name of the dispatch rule.
*
*/
public String dispatchRuleName() {
return this.dispatchRuleName;
}
public String dispatchType() {
return this.dispatchType;
}
/**
* @return Sets the event group.
*
*/
public List groupRules() {
return this.groupRules;
}
/**
* @return The ID of the Dispatch Rule.
*
*/
public String id() {
return this.id;
}
/**
* @return Sets the dispatch rule.
*
*/
public List labelMatchExpressionGrids() {
return this.labelMatchExpressionGrids;
}
/**
* @return Sets the notification rule.
*
*/
public List notifyRules() {
return this.notifyRules;
}
/**
* @return The resource status of Alert Dispatch Rule.
*
*/
public String status() {
return this.status;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDispatchRulesRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String dispatchRuleId;
private String dispatchRuleName;
private String dispatchType;
private List groupRules;
private String id;
private List labelMatchExpressionGrids;
private List notifyRules;
private String status;
public Builder() {}
public Builder(GetDispatchRulesRule defaults) {
Objects.requireNonNull(defaults);
this.dispatchRuleId = defaults.dispatchRuleId;
this.dispatchRuleName = defaults.dispatchRuleName;
this.dispatchType = defaults.dispatchType;
this.groupRules = defaults.groupRules;
this.id = defaults.id;
this.labelMatchExpressionGrids = defaults.labelMatchExpressionGrids;
this.notifyRules = defaults.notifyRules;
this.status = defaults.status;
}
@CustomType.Setter
public Builder dispatchRuleId(String dispatchRuleId) {
if (dispatchRuleId == null) {
throw new MissingRequiredPropertyException("GetDispatchRulesRule", "dispatchRuleId");
}
this.dispatchRuleId = dispatchRuleId;
return this;
}
@CustomType.Setter
public Builder dispatchRuleName(String dispatchRuleName) {
if (dispatchRuleName == null) {
throw new MissingRequiredPropertyException("GetDispatchRulesRule", "dispatchRuleName");
}
this.dispatchRuleName = dispatchRuleName;
return this;
}
@CustomType.Setter
public Builder dispatchType(String dispatchType) {
if (dispatchType == null) {
throw new MissingRequiredPropertyException("GetDispatchRulesRule", "dispatchType");
}
this.dispatchType = dispatchType;
return this;
}
@CustomType.Setter
public Builder groupRules(List groupRules) {
if (groupRules == null) {
throw new MissingRequiredPropertyException("GetDispatchRulesRule", "groupRules");
}
this.groupRules = groupRules;
return this;
}
public Builder groupRules(GetDispatchRulesRuleGroupRule... groupRules) {
return groupRules(List.of(groupRules));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDispatchRulesRule", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder labelMatchExpressionGrids(List labelMatchExpressionGrids) {
if (labelMatchExpressionGrids == null) {
throw new MissingRequiredPropertyException("GetDispatchRulesRule", "labelMatchExpressionGrids");
}
this.labelMatchExpressionGrids = labelMatchExpressionGrids;
return this;
}
public Builder labelMatchExpressionGrids(GetDispatchRulesRuleLabelMatchExpressionGrid... labelMatchExpressionGrids) {
return labelMatchExpressionGrids(List.of(labelMatchExpressionGrids));
}
@CustomType.Setter
public Builder notifyRules(List notifyRules) {
if (notifyRules == null) {
throw new MissingRequiredPropertyException("GetDispatchRulesRule", "notifyRules");
}
this.notifyRules = notifyRules;
return this;
}
public Builder notifyRules(GetDispatchRulesRuleNotifyRule... notifyRules) {
return notifyRules(List.of(notifyRules));
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetDispatchRulesRule", "status");
}
this.status = status;
return this;
}
public GetDispatchRulesRule build() {
final var _resultValue = new GetDispatchRulesRule();
_resultValue.dispatchRuleId = dispatchRuleId;
_resultValue.dispatchRuleName = dispatchRuleName;
_resultValue.dispatchType = dispatchType;
_resultValue.groupRules = groupRules;
_resultValue.id = id;
_resultValue.labelMatchExpressionGrids = labelMatchExpressionGrids;
_resultValue.notifyRules = notifyRules;
_resultValue.status = status;
return _resultValue;
}
}
}