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

com.pulumi.azurenative.security.outputs.ThresholdCustomAlertRuleResponse Maven / Gradle / Ivy

// *** 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.azurenative.security.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class ThresholdCustomAlertRuleResponse {
    /**
     * @return The description of the custom alert.
     * 
     */
    private String description;
    /**
     * @return The display name of the custom alert.
     * 
     */
    private String displayName;
    /**
     * @return Status of the custom alert.
     * 
     */
    private Boolean isEnabled;
    /**
     * @return The maximum threshold.
     * 
     */
    private Integer maxThreshold;
    /**
     * @return The minimum threshold.
     * 
     */
    private Integer minThreshold;
    /**
     * @return The type of the custom alert rule.
     * Expected value is 'ThresholdCustomAlertRule'.
     * 
     */
    private String ruleType;

    private ThresholdCustomAlertRuleResponse() {}
    /**
     * @return The description of the custom alert.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The display name of the custom alert.
     * 
     */
    public String displayName() {
        return this.displayName;
    }
    /**
     * @return Status of the custom alert.
     * 
     */
    public Boolean isEnabled() {
        return this.isEnabled;
    }
    /**
     * @return The maximum threshold.
     * 
     */
    public Integer maxThreshold() {
        return this.maxThreshold;
    }
    /**
     * @return The minimum threshold.
     * 
     */
    public Integer minThreshold() {
        return this.minThreshold;
    }
    /**
     * @return The type of the custom alert rule.
     * Expected value is 'ThresholdCustomAlertRule'.
     * 
     */
    public String ruleType() {
        return this.ruleType;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ThresholdCustomAlertRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String description;
        private String displayName;
        private Boolean isEnabled;
        private Integer maxThreshold;
        private Integer minThreshold;
        private String ruleType;
        public Builder() {}
        public Builder(ThresholdCustomAlertRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.displayName = defaults.displayName;
    	      this.isEnabled = defaults.isEnabled;
    	      this.maxThreshold = defaults.maxThreshold;
    	      this.minThreshold = defaults.minThreshold;
    	      this.ruleType = defaults.ruleType;
        }

        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("ThresholdCustomAlertRuleResponse", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(String displayName) {
            if (displayName == null) {
              throw new MissingRequiredPropertyException("ThresholdCustomAlertRuleResponse", "displayName");
            }
            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder isEnabled(Boolean isEnabled) {
            if (isEnabled == null) {
              throw new MissingRequiredPropertyException("ThresholdCustomAlertRuleResponse", "isEnabled");
            }
            this.isEnabled = isEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder maxThreshold(Integer maxThreshold) {
            if (maxThreshold == null) {
              throw new MissingRequiredPropertyException("ThresholdCustomAlertRuleResponse", "maxThreshold");
            }
            this.maxThreshold = maxThreshold;
            return this;
        }
        @CustomType.Setter
        public Builder minThreshold(Integer minThreshold) {
            if (minThreshold == null) {
              throw new MissingRequiredPropertyException("ThresholdCustomAlertRuleResponse", "minThreshold");
            }
            this.minThreshold = minThreshold;
            return this;
        }
        @CustomType.Setter
        public Builder ruleType(String ruleType) {
            if (ruleType == null) {
              throw new MissingRequiredPropertyException("ThresholdCustomAlertRuleResponse", "ruleType");
            }
            this.ruleType = ruleType;
            return this;
        }
        public ThresholdCustomAlertRuleResponse build() {
            final var _resultValue = new ThresholdCustomAlertRuleResponse();
            _resultValue.description = description;
            _resultValue.displayName = displayName;
            _resultValue.isEnabled = isEnabled;
            _resultValue.maxThreshold = maxThreshold;
            _resultValue.minThreshold = minThreshold;
            _resultValue.ruleType = ruleType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy