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

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


/**
 * A pointer to an Azure Action Group.
 * 
 */
public final class ActionGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final ActionGroupArgs Empty = new ActionGroupArgs();

    /**
     * The resource ID of the Action Group. This cannot be null or empty.
     * 
     */
    @Import(name="actionGroupId", required=true)
    private Output actionGroupId;

    /**
     * @return The resource ID of the Action Group. This cannot be null or empty.
     * 
     */
    public Output actionGroupId() {
        return this.actionGroupId;
    }

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

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

    private ActionGroupArgs() {}

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

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

    public static final class Builder {
        private ActionGroupArgs $;

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

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

        /**
         * @param actionGroupId The resource ID of the Action Group. This cannot be null or empty.
         * 
         * @return builder
         * 
         */
        public Builder actionGroupId(Output actionGroupId) {
            $.actionGroupId = actionGroupId;
            return this;
        }

        /**
         * @param actionGroupId The resource ID of the Action Group. This cannot be null or empty.
         * 
         * @return builder
         * 
         */
        public Builder actionGroupId(String actionGroupId) {
            return actionGroupId(Output.of(actionGroupId));
        }

        /**
         * @param webhookProperties the dictionary of custom 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 dictionary of custom 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 ActionGroupArgs build() {
            if ($.actionGroupId == null) {
                throw new MissingRequiredPropertyException("ActionGroupArgs", "actionGroupId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy