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

com.pulumi.azure.monitoring.outputs.ActionGroupWebhookReceiver 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.outputs;

import com.pulumi.azure.monitoring.outputs.ActionGroupWebhookReceiverAadAuth;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class ActionGroupWebhookReceiver {
    /**
     * @return The `aad_auth` block as defined below.
     * 
     * > **NOTE:** Before adding a secure webhook receiver by setting `aad_auth`, please read [the configuration instruction of the AAD application](https://docs.microsoft.com/azure/azure-monitor/platform/action-groups#secure-webhook).
     * 
     */
    private @Nullable ActionGroupWebhookReceiverAadAuth aadAuth;
    /**
     * @return The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.
     * 
     */
    private String name;
    /**
     * @return The URI where webhooks should be sent.
     * 
     */
    private String serviceUri;
    /**
     * @return Enables or disables the common alert schema.
     * 
     */
    private @Nullable Boolean useCommonAlertSchema;

    private ActionGroupWebhookReceiver() {}
    /**
     * @return The `aad_auth` block as defined below.
     * 
     * > **NOTE:** Before adding a secure webhook receiver by setting `aad_auth`, please read [the configuration instruction of the AAD application](https://docs.microsoft.com/azure/azure-monitor/platform/action-groups#secure-webhook).
     * 
     */
    public Optional aadAuth() {
        return Optional.ofNullable(this.aadAuth);
    }
    /**
     * @return The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The URI where webhooks should be sent.
     * 
     */
    public String serviceUri() {
        return this.serviceUri;
    }
    /**
     * @return Enables or disables the common alert schema.
     * 
     */
    public Optional useCommonAlertSchema() {
        return Optional.ofNullable(this.useCommonAlertSchema);
    }

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

    public static Builder builder(ActionGroupWebhookReceiver defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ActionGroupWebhookReceiverAadAuth aadAuth;
        private String name;
        private String serviceUri;
        private @Nullable Boolean useCommonAlertSchema;
        public Builder() {}
        public Builder(ActionGroupWebhookReceiver defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.aadAuth = defaults.aadAuth;
    	      this.name = defaults.name;
    	      this.serviceUri = defaults.serviceUri;
    	      this.useCommonAlertSchema = defaults.useCommonAlertSchema;
        }

        @CustomType.Setter
        public Builder aadAuth(@Nullable ActionGroupWebhookReceiverAadAuth aadAuth) {

            this.aadAuth = aadAuth;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("ActionGroupWebhookReceiver", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder serviceUri(String serviceUri) {
            if (serviceUri == null) {
              throw new MissingRequiredPropertyException("ActionGroupWebhookReceiver", "serviceUri");
            }
            this.serviceUri = serviceUri;
            return this;
        }
        @CustomType.Setter
        public Builder useCommonAlertSchema(@Nullable Boolean useCommonAlertSchema) {

            this.useCommonAlertSchema = useCommonAlertSchema;
            return this;
        }
        public ActionGroupWebhookReceiver build() {
            final var _resultValue = new ActionGroupWebhookReceiver();
            _resultValue.aadAuth = aadAuth;
            _resultValue.name = name;
            _resultValue.serviceUri = serviceUri;
            _resultValue.useCommonAlertSchema = useCommonAlertSchema;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy