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

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

// *** 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.core.internal.Codegen;
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;


/**
 * A logic app receiver.
 * 
 */
public final class LogicAppReceiverArgs extends com.pulumi.resources.ResourceArgs {

    public static final LogicAppReceiverArgs Empty = new LogicAppReceiverArgs();

    /**
     * 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. Names must be unique across all receivers within an action group.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the logic app receiver. Names must be unique across all receivers within an action group.
     * 
     */
    public Output name() {
        return this.name;
    }

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

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

    /**
     * Indicates whether to use common alert schema.
     * 
     */
    @Import(name="useCommonAlertSchema")
    private @Nullable Output useCommonAlertSchema;

    /**
     * @return Indicates whether to use common alert schema.
     * 
     */
    public Optional> useCommonAlertSchema() {
        return Optional.ofNullable(this.useCommonAlertSchema);
    }

    private LogicAppReceiverArgs() {}

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

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

    public static final class Builder {
        private LogicAppReceiverArgs $;

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

        public Builder(LogicAppReceiverArgs defaults) {
            $ = new LogicAppReceiverArgs(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. Names must be unique across all receivers within an action group.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the logic app receiver. Names must be unique across all receivers within an action group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

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

        /**
         * @param useCommonAlertSchema Indicates whether to use common alert schema.
         * 
         * @return builder
         * 
         */
        public Builder useCommonAlertSchema(@Nullable Output useCommonAlertSchema) {
            $.useCommonAlertSchema = useCommonAlertSchema;
            return this;
        }

        /**
         * @param useCommonAlertSchema Indicates whether to use common alert schema.
         * 
         * @return builder
         * 
         */
        public Builder useCommonAlertSchema(Boolean useCommonAlertSchema) {
            return useCommonAlertSchema(Output.of(useCommonAlertSchema));
        }

        public LogicAppReceiverArgs build() {
            if ($.callbackUrl == null) {
                throw new MissingRequiredPropertyException("LogicAppReceiverArgs", "callbackUrl");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("LogicAppReceiverArgs", "name");
            }
            if ($.resourceId == null) {
                throw new MissingRequiredPropertyException("LogicAppReceiverArgs", "resourceId");
            }
            $.useCommonAlertSchema = Codegen.booleanProp("useCommonAlertSchema").output().arg($.useCommonAlertSchema).def(false).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy