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

com.pulumi.azurenative.insights.inputs.WebhookReceiverArgs 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.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 webhook receiver.
 * 
 */
public final class WebhookReceiverArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebhookReceiverArgs Empty = new WebhookReceiverArgs();

    /**
     * Indicates the identifier uri for aad auth.
     * 
     */
    @Import(name="identifierUri")
    private @Nullable Output identifierUri;

    /**
     * @return Indicates the identifier uri for aad auth.
     * 
     */
    public Optional> identifierUri() {
        return Optional.ofNullable(this.identifierUri);
    }

    /**
     * The name of the webhook receiver. Names must be unique across all receivers within a tenant action group.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

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

    /**
     * Indicates the webhook app object Id for aad auth.
     * 
     */
    @Import(name="objectId")
    private @Nullable Output objectId;

    /**
     * @return Indicates the webhook app object Id for aad auth.
     * 
     */
    public Optional> objectId() {
        return Optional.ofNullable(this.objectId);
    }

    /**
     * The URI where webhooks should be sent.
     * 
     */
    @Import(name="serviceUri", required=true)
    private Output serviceUri;

    /**
     * @return The URI where webhooks should be sent.
     * 
     */
    public Output serviceUri() {
        return this.serviceUri;
    }

    /**
     * Indicates the tenant id for aad auth.
     * 
     */
    @Import(name="tenantId")
    private @Nullable Output tenantId;

    /**
     * @return Indicates the tenant id for aad auth.
     * 
     */
    public Optional> tenantId() {
        return Optional.ofNullable(this.tenantId);
    }

    /**
     * Indicates whether or not use AAD authentication.
     * 
     */
    @Import(name="useAadAuth")
    private @Nullable Output useAadAuth;

    /**
     * @return Indicates whether or not use AAD authentication.
     * 
     */
    public Optional> useAadAuth() {
        return Optional.ofNullable(this.useAadAuth);
    }

    /**
     * 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 WebhookReceiverArgs() {}

    private WebhookReceiverArgs(WebhookReceiverArgs $) {
        this.identifierUri = $.identifierUri;
        this.name = $.name;
        this.objectId = $.objectId;
        this.serviceUri = $.serviceUri;
        this.tenantId = $.tenantId;
        this.useAadAuth = $.useAadAuth;
        this.useCommonAlertSchema = $.useCommonAlertSchema;
    }

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

    public static final class Builder {
        private WebhookReceiverArgs $;

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

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

        /**
         * @param identifierUri Indicates the identifier uri for aad auth.
         * 
         * @return builder
         * 
         */
        public Builder identifierUri(@Nullable Output identifierUri) {
            $.identifierUri = identifierUri;
            return this;
        }

        /**
         * @param identifierUri Indicates the identifier uri for aad auth.
         * 
         * @return builder
         * 
         */
        public Builder identifierUri(String identifierUri) {
            return identifierUri(Output.of(identifierUri));
        }

        /**
         * @param name The name of the webhook receiver. Names must be unique across all receivers within a tenant action group.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param objectId Indicates the webhook app object Id for aad auth.
         * 
         * @return builder
         * 
         */
        public Builder objectId(@Nullable Output objectId) {
            $.objectId = objectId;
            return this;
        }

        /**
         * @param objectId Indicates the webhook app object Id for aad auth.
         * 
         * @return builder
         * 
         */
        public Builder objectId(String objectId) {
            return objectId(Output.of(objectId));
        }

        /**
         * @param serviceUri The URI where webhooks should be sent.
         * 
         * @return builder
         * 
         */
        public Builder serviceUri(Output serviceUri) {
            $.serviceUri = serviceUri;
            return this;
        }

        /**
         * @param serviceUri The URI where webhooks should be sent.
         * 
         * @return builder
         * 
         */
        public Builder serviceUri(String serviceUri) {
            return serviceUri(Output.of(serviceUri));
        }

        /**
         * @param tenantId Indicates the tenant id for aad auth.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(@Nullable Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

        /**
         * @param tenantId Indicates the tenant id for aad auth.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(String tenantId) {
            return tenantId(Output.of(tenantId));
        }

        /**
         * @param useAadAuth Indicates whether or not use AAD authentication.
         * 
         * @return builder
         * 
         */
        public Builder useAadAuth(@Nullable Output useAadAuth) {
            $.useAadAuth = useAadAuth;
            return this;
        }

        /**
         * @param useAadAuth Indicates whether or not use AAD authentication.
         * 
         * @return builder
         * 
         */
        public Builder useAadAuth(Boolean useAadAuth) {
            return useAadAuth(Output.of(useAadAuth));
        }

        /**
         * @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 WebhookReceiverArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("WebhookReceiverArgs", "name");
            }
            if ($.serviceUri == null) {
                throw new MissingRequiredPropertyException("WebhookReceiverArgs", "serviceUri");
            }
            $.useAadAuth = Codegen.booleanProp("useAadAuth").output().arg($.useAadAuth).def(false).getNullable();
            $.useCommonAlertSchema = Codegen.booleanProp("useCommonAlertSchema").output().arg($.useCommonAlertSchema).def(false).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy