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

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

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


/**
 * An alert action.
 * 
 */
public final class MetricAlertActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final MetricAlertActionArgs Empty = new MetricAlertActionArgs();

    /**
     * the id of the action group to use.
     * 
     */
    @Import(name="actionGroupId")
    private @Nullable Output actionGroupId;

    /**
     * @return the id of the action group to use.
     * 
     */
    public Optional> actionGroupId() {
        return Optional.ofNullable(this.actionGroupId);
    }

    /**
     * This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
     * 
     */
    @Import(name="webHookProperties")
    private @Nullable Output> webHookProperties;

    /**
     * @return This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
     * 
     */
    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 to use.
         * 
         * @return builder
         * 
         */
        public Builder actionGroupId(@Nullable Output actionGroupId) {
            $.actionGroupId = actionGroupId;
            return this;
        }

        /**
         * @param actionGroupId the id of the action group to use.
         * 
         * @return builder
         * 
         */
        public Builder actionGroupId(String actionGroupId) {
            return actionGroupId(Output.of(actionGroupId));
        }

        /**
         * @param webHookProperties This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
         * 
         * @return builder
         * 
         */
        public Builder webHookProperties(@Nullable Output> webHookProperties) {
            $.webHookProperties = webHookProperties;
            return this;
        }

        /**
         * @param webHookProperties This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
         * 
         * @return builder
         * 
         */
        public Builder webHookProperties(Map webHookProperties) {
            return webHookProperties(Output.of(webHookProperties));
        }

        public MetricAlertActionArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy