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

com.pulumi.azure.monitoring.inputs.MetricAlertActionArgs 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MetricAlertActionArgs Empty = new MetricAlertActionArgs();

    /**
     * The ID of the Action Group can be sourced from the `azure.monitoring.ActionGroup` resource
     * 
     */
    @Import(name="actionGroupId", required=true)
    private Output actionGroupId;

    /**
     * @return The ID of the Action Group can be sourced from the `azure.monitoring.ActionGroup` resource
     * 
     */
    public Output actionGroupId() {
        return this.actionGroupId;
    }

    /**
     * The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
     * 
     */
    @Import(name="webhookProperties")
    private @Nullable Output> webhookProperties;

    /**
     * @return The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
     * 
     */
    public Optional>> webhookProperties() {
        return Optional.ofNullable(this.webhookProperties);
    }

    private MetricAlertActionArgs() {}

    private MetricAlertActionArgs(MetricAlertActionArgs $) {
        this.actionGroupId = $.actionGroupId;
        this.webhookProperties = $.webhookProperties;
    }

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

    public static final class Builder {
        private MetricAlertActionArgs $;

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

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

        /**
         * @param actionGroupId The ID of the Action Group can be sourced from the `azure.monitoring.ActionGroup` resource
         * 
         * @return builder
         * 
         */
        public Builder actionGroupId(Output actionGroupId) {
            $.actionGroupId = actionGroupId;
            return this;
        }

        /**
         * @param actionGroupId The ID of the Action Group can be sourced from the `azure.monitoring.ActionGroup` resource
         * 
         * @return builder
         * 
         */
        public Builder actionGroupId(String actionGroupId) {
            return actionGroupId(Output.of(actionGroupId));
        }

        /**
         * @param webhookProperties The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
         * 
         * @return builder
         * 
         */
        public Builder webhookProperties(@Nullable Output> webhookProperties) {
            $.webhookProperties = webhookProperties;
            return this;
        }

        /**
         * @param webhookProperties The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
         * 
         * @return builder
         * 
         */
        public Builder webhookProperties(Map webhookProperties) {
            return webhookProperties(Output.of(webhookProperties));
        }

        public MetricAlertActionArgs build() {
            if ($.actionGroupId == null) {
                throw new MissingRequiredPropertyException("MetricAlertActionArgs", "actionGroupId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy