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

com.pulumi.azure.monitoring.AlertProcessingRuleSuppressionArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.monitoring;

import com.pulumi.azure.monitoring.inputs.AlertProcessingRuleSuppressionConditionArgs;
import com.pulumi.azure.monitoring.inputs.AlertProcessingRuleSuppressionScheduleArgs;
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.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AlertProcessingRuleSuppressionArgs extends com.pulumi.resources.ResourceArgs {

    public static final AlertProcessingRuleSuppressionArgs Empty = new AlertProcessingRuleSuppressionArgs();

    /**
     * A `condition` block as defined below.
     * 
     */
    @Import(name="condition")
    private @Nullable Output condition;

    /**
     * @return A `condition` block as defined below.
     * 
     */
    public Optional> condition() {
        return Optional.ofNullable(this.condition);
    }

    /**
     * Specifies a description for the Alert Processing Rule.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Specifies a description for the Alert Processing Rule.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Should the Alert Processing Rule be enabled? Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Should the Alert Processing Rule be enabled? Defaults to `true`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The name which should be used for this Alert Processing Rule. Changing this forces a new Alert Processing Rule to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Alert Processing Rule. Changing this forces a new Alert Processing Rule to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the Resource Group where the Alert Processing Rule should exist. Changing this forces a new Alert Processing Rule to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Resource Group where the Alert Processing Rule should exist. Changing this forces a new Alert Processing Rule to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * A `schedule` block as defined below.
     * 
     */
    @Import(name="schedule")
    private @Nullable Output schedule;

    /**
     * @return A `schedule` block as defined below.
     * 
     */
    public Optional> schedule() {
        return Optional.ofNullable(this.schedule);
    }

    /**
     * A list of resource IDs which will be the target of Alert Processing Rule.
     * 
     */
    @Import(name="scopes", required=true)
    private Output> scopes;

    /**
     * @return A list of resource IDs which will be the target of Alert Processing Rule.
     * 
     */
    public Output> scopes() {
        return this.scopes;
    }

    /**
     * A mapping of tags which should be assigned to the Alert Processing Rule.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the Alert Processing Rule.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private AlertProcessingRuleSuppressionArgs() {}

    private AlertProcessingRuleSuppressionArgs(AlertProcessingRuleSuppressionArgs $) {
        this.condition = $.condition;
        this.description = $.description;
        this.enabled = $.enabled;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.schedule = $.schedule;
        this.scopes = $.scopes;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private AlertProcessingRuleSuppressionArgs $;

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

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

        /**
         * @param condition A `condition` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder condition(@Nullable Output condition) {
            $.condition = condition;
            return this;
        }

        /**
         * @param condition A `condition` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder condition(AlertProcessingRuleSuppressionConditionArgs condition) {
            return condition(Output.of(condition));
        }

        /**
         * @param description Specifies a description for the Alert Processing Rule.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Specifies a description for the Alert Processing Rule.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param enabled Should the Alert Processing Rule be enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Should the Alert Processing Rule be enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param name The name which should be used for this Alert Processing Rule. Changing this forces a new Alert Processing Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Alert Processing Rule. Changing this forces a new Alert Processing Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Alert Processing Rule should exist. Changing this forces a new Alert Processing Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Alert Processing Rule should exist. Changing this forces a new Alert Processing Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param schedule A `schedule` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schedule(@Nullable Output schedule) {
            $.schedule = schedule;
            return this;
        }

        /**
         * @param schedule A `schedule` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schedule(AlertProcessingRuleSuppressionScheduleArgs schedule) {
            return schedule(Output.of(schedule));
        }

        /**
         * @param scopes A list of resource IDs which will be the target of Alert Processing Rule.
         * 
         * @return builder
         * 
         */
        public Builder scopes(Output> scopes) {
            $.scopes = scopes;
            return this;
        }

        /**
         * @param scopes A list of resource IDs which will be the target of Alert Processing Rule.
         * 
         * @return builder
         * 
         */
        public Builder scopes(List scopes) {
            return scopes(Output.of(scopes));
        }

        /**
         * @param scopes A list of resource IDs which will be the target of Alert Processing Rule.
         * 
         * @return builder
         * 
         */
        public Builder scopes(String... scopes) {
            return scopes(List.of(scopes));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Alert Processing Rule.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Alert Processing Rule.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy