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

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


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

    public static final ActionGroupLogicAppReceiverArgs Empty = new ActionGroupLogicAppReceiverArgs();

    /**
     * The callback url where HTTP request sent to.
     * 
     */
    @Import(name="callbackUrl", required=true)
    private Output callbackUrl;

    /**
     * @return The callback url where HTTP request sent to.
     * 
     */
    public Output callbackUrl() {
        return this.callbackUrl;
    }

    /**
     * The name of the logic app receiver.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the logic app receiver.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The Azure resource ID of the logic app.
     * 
     */
    @Import(name="resourceId", required=true)
    private Output resourceId;

    /**
     * @return The Azure resource ID of the logic app.
     * 
     */
    public Output resourceId() {
        return this.resourceId;
    }

    /**
     * Enables or disables the common alert schema.
     * 
     */
    @Import(name="useCommonAlertSchema")
    private @Nullable Output useCommonAlertSchema;

    /**
     * @return Enables or disables the common alert schema.
     * 
     */
    public Optional> useCommonAlertSchema() {
        return Optional.ofNullable(this.useCommonAlertSchema);
    }

    private ActionGroupLogicAppReceiverArgs() {}

    private ActionGroupLogicAppReceiverArgs(ActionGroupLogicAppReceiverArgs $) {
        this.callbackUrl = $.callbackUrl;
        this.name = $.name;
        this.resourceId = $.resourceId;
        this.useCommonAlertSchema = $.useCommonAlertSchema;
    }

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

    public static final class Builder {
        private ActionGroupLogicAppReceiverArgs $;

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

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

        /**
         * @param callbackUrl The callback url where HTTP request sent to.
         * 
         * @return builder
         * 
         */
        public Builder callbackUrl(Output callbackUrl) {
            $.callbackUrl = callbackUrl;
            return this;
        }

        /**
         * @param callbackUrl The callback url where HTTP request sent to.
         * 
         * @return builder
         * 
         */
        public Builder callbackUrl(String callbackUrl) {
            return callbackUrl(Output.of(callbackUrl));
        }

        /**
         * @param name The name of the logic app receiver.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the logic app receiver.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceId The Azure resource ID of the logic app.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The Azure resource ID of the logic app.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param useCommonAlertSchema Enables or disables the common alert schema.
         * 
         * @return builder
         * 
         */
        public Builder useCommonAlertSchema(@Nullable Output useCommonAlertSchema) {
            $.useCommonAlertSchema = useCommonAlertSchema;
            return this;
        }

        /**
         * @param useCommonAlertSchema Enables or disables the common alert schema.
         * 
         * @return builder
         * 
         */
        public Builder useCommonAlertSchema(Boolean useCommonAlertSchema) {
            return useCommonAlertSchema(Output.of(useCommonAlertSchema));
        }

        public ActionGroupLogicAppReceiverArgs build() {
            if ($.callbackUrl == null) {
                throw new MissingRequiredPropertyException("ActionGroupLogicAppReceiverArgs", "callbackUrl");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ActionGroupLogicAppReceiverArgs", "name");
            }
            if ($.resourceId == null) {
                throw new MissingRequiredPropertyException("ActionGroupLogicAppReceiverArgs", "resourceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy