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

com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaServiceHealthArgs 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.inputs;

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


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

    public static final ActivityLogAlertCriteriaServiceHealthArgs Empty = new ActivityLogAlertCriteriaServiceHealthArgs();

    /**
     * Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
     * 
     */
    @Import(name="events")
    private @Nullable Output> events;

    /**
     * @return Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
     * 
     */
    public Optional>> events() {
        return Optional.ofNullable(this.events);
    }

    /**
     * Locations this alert will monitor. For example, `West Europe`.
     * 
     */
    @Import(name="locations")
    private @Nullable Output> locations;

    /**
     * @return Locations this alert will monitor. For example, `West Europe`.
     * 
     */
    public Optional>> locations() {
        return Optional.ofNullable(this.locations);
    }

    /**
     * Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.
     * 
     */
    @Import(name="services")
    private @Nullable Output> services;

    /**
     * @return Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.
     * 
     */
    public Optional>> services() {
        return Optional.ofNullable(this.services);
    }

    private ActivityLogAlertCriteriaServiceHealthArgs() {}

    private ActivityLogAlertCriteriaServiceHealthArgs(ActivityLogAlertCriteriaServiceHealthArgs $) {
        this.events = $.events;
        this.locations = $.locations;
        this.services = $.services;
    }

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

    public static final class Builder {
        private ActivityLogAlertCriteriaServiceHealthArgs $;

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

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

        /**
         * @param events Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
         * 
         * @return builder
         * 
         */
        public Builder events(@Nullable Output> events) {
            $.events = events;
            return this;
        }

        /**
         * @param events Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
         * 
         * @return builder
         * 
         */
        public Builder events(List events) {
            return events(Output.of(events));
        }

        /**
         * @param events Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
         * 
         * @return builder
         * 
         */
        public Builder events(String... events) {
            return events(List.of(events));
        }

        /**
         * @param locations Locations this alert will monitor. For example, `West Europe`.
         * 
         * @return builder
         * 
         */
        public Builder locations(@Nullable Output> locations) {
            $.locations = locations;
            return this;
        }

        /**
         * @param locations Locations this alert will monitor. For example, `West Europe`.
         * 
         * @return builder
         * 
         */
        public Builder locations(List locations) {
            return locations(Output.of(locations));
        }

        /**
         * @param locations Locations this alert will monitor. For example, `West Europe`.
         * 
         * @return builder
         * 
         */
        public Builder locations(String... locations) {
            return locations(List.of(locations));
        }

        /**
         * @param services Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.
         * 
         * @return builder
         * 
         */
        public Builder services(@Nullable Output> services) {
            $.services = services;
            return this;
        }

        /**
         * @param services Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.
         * 
         * @return builder
         * 
         */
        public Builder services(List services) {
            return services(Output.of(services));
        }

        /**
         * @param services Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.
         * 
         * @return builder
         * 
         */
        public Builder services(String... services) {
            return services(List.of(services));
        }

        public ActivityLogAlertCriteriaServiceHealthArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy