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

com.pulumi.azurenative.insights.ProactiveDetectionConfigurationArgs 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.insights;

import com.pulumi.azurenative.insights.inputs.ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesRuleDefinitionsArgs;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ProactiveDetectionConfigurationArgs Empty = new ProactiveDetectionConfigurationArgs();

    /**
     * The ProactiveDetection configuration ID. This is unique within a Application Insights component.
     * 
     */
    @Import(name="configurationId")
    private @Nullable Output configurationId;

    /**
     * @return The ProactiveDetection configuration ID. This is unique within a Application Insights component.
     * 
     */
    public Optional> configurationId() {
        return Optional.ofNullable(this.configurationId);
    }

    /**
     * Custom email addresses for this rule notifications
     * 
     */
    @Import(name="customEmails")
    private @Nullable Output> customEmails;

    /**
     * @return Custom email addresses for this rule notifications
     * 
     */
    public Optional>> customEmails() {
        return Optional.ofNullable(this.customEmails);
    }

    /**
     * A flag that indicates whether this rule is enabled by the user
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return A flag that indicates whether this rule is enabled by the user
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Resource location
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Azure resource name
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Azure resource name
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

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

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

    /**
     * The name of the Application Insights component resource.
     * 
     */
    @Import(name="resourceName", required=true)
    private Output resourceName;

    /**
     * @return The name of the Application Insights component resource.
     * 
     */
    public Output resourceName() {
        return this.resourceName;
    }

    /**
     * Static definitions of the ProactiveDetection configuration rule (same values for all components).
     * 
     */
    @Import(name="ruleDefinitions")
    private @Nullable Output ruleDefinitions;

    /**
     * @return Static definitions of the ProactiveDetection configuration rule (same values for all components).
     * 
     */
    public Optional> ruleDefinitions() {
        return Optional.ofNullable(this.ruleDefinitions);
    }

    /**
     * A flag that indicated whether notifications on this rule should be sent to subscription owners
     * 
     */
    @Import(name="sendEmailsToSubscriptionOwners")
    private @Nullable Output sendEmailsToSubscriptionOwners;

    /**
     * @return A flag that indicated whether notifications on this rule should be sent to subscription owners
     * 
     */
    public Optional> sendEmailsToSubscriptionOwners() {
        return Optional.ofNullable(this.sendEmailsToSubscriptionOwners);
    }

    private ProactiveDetectionConfigurationArgs() {}

    private ProactiveDetectionConfigurationArgs(ProactiveDetectionConfigurationArgs $) {
        this.configurationId = $.configurationId;
        this.customEmails = $.customEmails;
        this.enabled = $.enabled;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.ruleDefinitions = $.ruleDefinitions;
        this.sendEmailsToSubscriptionOwners = $.sendEmailsToSubscriptionOwners;
    }

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

    public static final class Builder {
        private ProactiveDetectionConfigurationArgs $;

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

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

        /**
         * @param configurationId The ProactiveDetection configuration ID. This is unique within a Application Insights component.
         * 
         * @return builder
         * 
         */
        public Builder configurationId(@Nullable Output configurationId) {
            $.configurationId = configurationId;
            return this;
        }

        /**
         * @param configurationId The ProactiveDetection configuration ID. This is unique within a Application Insights component.
         * 
         * @return builder
         * 
         */
        public Builder configurationId(String configurationId) {
            return configurationId(Output.of(configurationId));
        }

        /**
         * @param customEmails Custom email addresses for this rule notifications
         * 
         * @return builder
         * 
         */
        public Builder customEmails(@Nullable Output> customEmails) {
            $.customEmails = customEmails;
            return this;
        }

        /**
         * @param customEmails Custom email addresses for this rule notifications
         * 
         * @return builder
         * 
         */
        public Builder customEmails(List customEmails) {
            return customEmails(Output.of(customEmails));
        }

        /**
         * @param customEmails Custom email addresses for this rule notifications
         * 
         * @return builder
         * 
         */
        public Builder customEmails(String... customEmails) {
            return customEmails(List.of(customEmails));
        }

        /**
         * @param enabled A flag that indicates whether this rule is enabled by the user
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled A flag that indicates whether this rule is enabled by the user
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param location Resource location
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name Azure resource name
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Azure resource name
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

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

        /**
         * @param resourceName The name of the Application Insights component resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

        /**
         * @param resourceName The name of the Application Insights component resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(String resourceName) {
            return resourceName(Output.of(resourceName));
        }

        /**
         * @param ruleDefinitions Static definitions of the ProactiveDetection configuration rule (same values for all components).
         * 
         * @return builder
         * 
         */
        public Builder ruleDefinitions(@Nullable Output ruleDefinitions) {
            $.ruleDefinitions = ruleDefinitions;
            return this;
        }

        /**
         * @param ruleDefinitions Static definitions of the ProactiveDetection configuration rule (same values for all components).
         * 
         * @return builder
         * 
         */
        public Builder ruleDefinitions(ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesRuleDefinitionsArgs ruleDefinitions) {
            return ruleDefinitions(Output.of(ruleDefinitions));
        }

        /**
         * @param sendEmailsToSubscriptionOwners A flag that indicated whether notifications on this rule should be sent to subscription owners
         * 
         * @return builder
         * 
         */
        public Builder sendEmailsToSubscriptionOwners(@Nullable Output sendEmailsToSubscriptionOwners) {
            $.sendEmailsToSubscriptionOwners = sendEmailsToSubscriptionOwners;
            return this;
        }

        /**
         * @param sendEmailsToSubscriptionOwners A flag that indicated whether notifications on this rule should be sent to subscription owners
         * 
         * @return builder
         * 
         */
        public Builder sendEmailsToSubscriptionOwners(Boolean sendEmailsToSubscriptionOwners) {
            return sendEmailsToSubscriptionOwners(Output.of(sendEmailsToSubscriptionOwners));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy