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

com.pulumi.azurenative.alertsmanagement.inputs.GetSmartDetectorAlertRuleArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetSmartDetectorAlertRuleArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSmartDetectorAlertRuleArgs Empty = new GetSmartDetectorAlertRuleArgs();

    /**
     * The name of the alert rule.
     * 
     */
    @Import(name="alertRuleName", required=true)
    private Output alertRuleName;

    /**
     * @return The name of the alert rule.
     * 
     */
    public Output alertRuleName() {
        return this.alertRuleName;
    }

    /**
     * Indicates if Smart Detector should be expanded.
     * 
     */
    @Import(name="expandDetector")
    private @Nullable Output expandDetector;

    /**
     * @return Indicates if Smart Detector should be expanded.
     * 
     */
    public Optional> expandDetector() {
        return Optional.ofNullable(this.expandDetector);
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private GetSmartDetectorAlertRuleArgs() {}

    private GetSmartDetectorAlertRuleArgs(GetSmartDetectorAlertRuleArgs $) {
        this.alertRuleName = $.alertRuleName;
        this.expandDetector = $.expandDetector;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private GetSmartDetectorAlertRuleArgs $;

        public Builder() {
            $ = new GetSmartDetectorAlertRuleArgs();
        }

        public Builder(GetSmartDetectorAlertRuleArgs defaults) {
            $ = new GetSmartDetectorAlertRuleArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param alertRuleName The name of the alert rule.
         * 
         * @return builder
         * 
         */
        public Builder alertRuleName(Output alertRuleName) {
            $.alertRuleName = alertRuleName;
            return this;
        }

        /**
         * @param alertRuleName The name of the alert rule.
         * 
         * @return builder
         * 
         */
        public Builder alertRuleName(String alertRuleName) {
            return alertRuleName(Output.of(alertRuleName));
        }

        /**
         * @param expandDetector Indicates if Smart Detector should be expanded.
         * 
         * @return builder
         * 
         */
        public Builder expandDetector(@Nullable Output expandDetector) {
            $.expandDetector = expandDetector;
            return this;
        }

        /**
         * @param expandDetector Indicates if Smart Detector should be expanded.
         * 
         * @return builder
         * 
         */
        public Builder expandDetector(Boolean expandDetector) {
            return expandDetector(Output.of(expandDetector));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public GetSmartDetectorAlertRuleArgs build() {
            if ($.alertRuleName == null) {
                throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleArgs", "alertRuleName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetSmartDetectorAlertRuleArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy