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

com.pulumi.azurenative.alertsmanagement.outputs.GetSmartDetectorAlertRuleResult Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.alertsmanagement.outputs;

import com.pulumi.azurenative.alertsmanagement.outputs.ActionGroupsInformationResponse;
import com.pulumi.azurenative.alertsmanagement.outputs.DetectorResponse;
import com.pulumi.azurenative.alertsmanagement.outputs.ThrottlingInformationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetSmartDetectorAlertRuleResult {
    /**
     * @return The alert rule actions.
     * 
     */
    private ActionGroupsInformationResponse actionGroups;
    /**
     * @return The alert rule description.
     * 
     */
    private @Nullable String description;
    /**
     * @return The alert rule's detector.
     * 
     */
    private DetectorResponse detector;
    /**
     * @return The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector.
     * 
     */
    private String frequency;
    /**
     * @return The resource ID.
     * 
     */
    private String id;
    /**
     * @return The resource location.
     * 
     */
    private @Nullable String location;
    /**
     * @return The resource name.
     * 
     */
    private String name;
    /**
     * @return The alert rule resources scope.
     * 
     */
    private List scope;
    /**
     * @return The alert rule severity.
     * 
     */
    private String severity;
    /**
     * @return The alert rule state.
     * 
     */
    private String state;
    /**
     * @return The resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The alert rule throttling information.
     * 
     */
    private @Nullable ThrottlingInformationResponse throttling;
    /**
     * @return The resource type.
     * 
     */
    private String type;

    private GetSmartDetectorAlertRuleResult() {}
    /**
     * @return The alert rule actions.
     * 
     */
    public ActionGroupsInformationResponse actionGroups() {
        return this.actionGroups;
    }
    /**
     * @return The alert rule description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The alert rule's detector.
     * 
     */
    public DetectorResponse detector() {
        return this.detector;
    }
    /**
     * @return The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector.
     * 
     */
    public String frequency() {
        return this.frequency;
    }
    /**
     * @return The resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The resource location.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The alert rule resources scope.
     * 
     */
    public List scope() {
        return this.scope;
    }
    /**
     * @return The alert rule severity.
     * 
     */
    public String severity() {
        return this.severity;
    }
    /**
     * @return The alert rule state.
     * 
     */
    public String state() {
        return this.state;
    }
    /**
     * @return The resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The alert rule throttling information.
     * 
     */
    public Optional throttling() {
        return Optional.ofNullable(this.throttling);
    }
    /**
     * @return The resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetSmartDetectorAlertRuleResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private ActionGroupsInformationResponse actionGroups;
        private @Nullable String description;
        private DetectorResponse detector;
        private String frequency;
        private String id;
        private @Nullable String location;
        private String name;
        private List scope;
        private String severity;
        private String state;
        private @Nullable Map tags;
        private @Nullable ThrottlingInformationResponse throttling;
        private String type;
        public Builder() {}
        public Builder(GetSmartDetectorAlertRuleResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actionGroups = defaults.actionGroups;
    	      this.description = defaults.description;
    	      this.detector = defaults.detector;
    	      this.frequency = defaults.frequency;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.scope = defaults.scope;
    	      this.severity = defaults.severity;
    	      this.state = defaults.state;
    	      this.tags = defaults.tags;
    	      this.throttling = defaults.throttling;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder actionGroups(ActionGroupsInformationResponse actionGroups) {
            if (actionGroups == null) {
              throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleResult", "actionGroups");
            }
            this.actionGroups = actionGroups;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder detector(DetectorResponse detector) {
            if (detector == null) {
              throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleResult", "detector");
            }
            this.detector = detector;
            return this;
        }
        @CustomType.Setter
        public Builder frequency(String frequency) {
            if (frequency == null) {
              throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleResult", "frequency");
            }
            this.frequency = frequency;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder scope(List scope) {
            if (scope == null) {
              throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleResult", "scope");
            }
            this.scope = scope;
            return this;
        }
        public Builder scope(String... scope) {
            return scope(List.of(scope));
        }
        @CustomType.Setter
        public Builder severity(String severity) {
            if (severity == null) {
              throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleResult", "severity");
            }
            this.severity = severity;
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            if (state == null) {
              throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleResult", "state");
            }
            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder throttling(@Nullable ThrottlingInformationResponse throttling) {

            this.throttling = throttling;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetSmartDetectorAlertRuleResult build() {
            final var _resultValue = new GetSmartDetectorAlertRuleResult();
            _resultValue.actionGroups = actionGroups;
            _resultValue.description = description;
            _resultValue.detector = detector;
            _resultValue.frequency = frequency;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.scope = scope;
            _resultValue.severity = severity;
            _resultValue.state = state;
            _resultValue.tags = tags;
            _resultValue.throttling = throttling;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy