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

com.pulumi.azurenative.insights.inputs.ActionsArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Actions to invoke when the alert fires.
 * 
 */
public final class ActionsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ActionsArgs Empty = new ActionsArgs();

    /**
     * Action Group resource Ids to invoke when the alert fires.
     * 
     */
    @Import(name="actionGroups")
    private @Nullable Output> actionGroups;

    /**
     * @return Action Group resource Ids to invoke when the alert fires.
     * 
     */
    public Optional>> actionGroups() {
        return Optional.ofNullable(this.actionGroups);
    }

    /**
     * The properties of an action properties.
     * 
     */
    @Import(name="actionProperties")
    private @Nullable Output> actionProperties;

    /**
     * @return The properties of an action properties.
     * 
     */
    public Optional>> actionProperties() {
        return Optional.ofNullable(this.actionProperties);
    }

    /**
     * The properties of an alert payload.
     * 
     */
    @Import(name="customProperties")
    private @Nullable Output> customProperties;

    /**
     * @return The properties of an alert payload.
     * 
     */
    public Optional>> customProperties() {
        return Optional.ofNullable(this.customProperties);
    }

    private ActionsArgs() {}

    private ActionsArgs(ActionsArgs $) {
        this.actionGroups = $.actionGroups;
        this.actionProperties = $.actionProperties;
        this.customProperties = $.customProperties;
    }

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

    public static final class Builder {
        private ActionsArgs $;

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

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

        /**
         * @param actionGroups Action Group resource Ids to invoke when the alert fires.
         * 
         * @return builder
         * 
         */
        public Builder actionGroups(@Nullable Output> actionGroups) {
            $.actionGroups = actionGroups;
            return this;
        }

        /**
         * @param actionGroups Action Group resource Ids to invoke when the alert fires.
         * 
         * @return builder
         * 
         */
        public Builder actionGroups(List actionGroups) {
            return actionGroups(Output.of(actionGroups));
        }

        /**
         * @param actionGroups Action Group resource Ids to invoke when the alert fires.
         * 
         * @return builder
         * 
         */
        public Builder actionGroups(String... actionGroups) {
            return actionGroups(List.of(actionGroups));
        }

        /**
         * @param actionProperties The properties of an action properties.
         * 
         * @return builder
         * 
         */
        public Builder actionProperties(@Nullable Output> actionProperties) {
            $.actionProperties = actionProperties;
            return this;
        }

        /**
         * @param actionProperties The properties of an action properties.
         * 
         * @return builder
         * 
         */
        public Builder actionProperties(Map actionProperties) {
            return actionProperties(Output.of(actionProperties));
        }

        /**
         * @param customProperties The properties of an alert payload.
         * 
         * @return builder
         * 
         */
        public Builder customProperties(@Nullable Output> customProperties) {
            $.customProperties = customProperties;
            return this;
        }

        /**
         * @param customProperties The properties of an alert payload.
         * 
         * @return builder
         * 
         */
        public Builder customProperties(Map customProperties) {
            return customProperties(Output.of(customProperties));
        }

        public ActionsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy