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

com.pulumi.azurenative.insights.outputs.WebhookReceiverResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.outputs;

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 WebhookReceiverResponse {
    /**
     * @return Indicates the identifier uri for aad auth.
     * 
     */
    private @Nullable String identifierUri;
    /**
     * @return The name of the webhook receiver. Names must be unique across all receivers within a tenant action group.
     * 
     */
    private String name;
    /**
     * @return Indicates the webhook app object Id for aad auth.
     * 
     */
    private @Nullable String objectId;
    /**
     * @return The URI where webhooks should be sent.
     * 
     */
    private String serviceUri;
    /**
     * @return Indicates the tenant id for aad auth.
     * 
     */
    private @Nullable String tenantId;
    /**
     * @return Indicates whether or not use AAD authentication.
     * 
     */
    private @Nullable Boolean useAadAuth;
    /**
     * @return Indicates whether to use common alert schema.
     * 
     */
    private @Nullable Boolean useCommonAlertSchema;

    private WebhookReceiverResponse() {}
    /**
     * @return Indicates the identifier uri for aad auth.
     * 
     */
    public Optional identifierUri() {
        return Optional.ofNullable(this.identifierUri);
    }
    /**
     * @return The name of the webhook receiver. Names must be unique across all receivers within a tenant action group.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Indicates the webhook app object Id for aad auth.
     * 
     */
    public Optional objectId() {
        return Optional.ofNullable(this.objectId);
    }
    /**
     * @return The URI where webhooks should be sent.
     * 
     */
    public String serviceUri() {
        return this.serviceUri;
    }
    /**
     * @return Indicates the tenant id for aad auth.
     * 
     */
    public Optional tenantId() {
        return Optional.ofNullable(this.tenantId);
    }
    /**
     * @return Indicates whether or not use AAD authentication.
     * 
     */
    public Optional useAadAuth() {
        return Optional.ofNullable(this.useAadAuth);
    }
    /**
     * @return Indicates whether to use common alert schema.
     * 
     */
    public Optional useCommonAlertSchema() {
        return Optional.ofNullable(this.useCommonAlertSchema);
    }

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

    public static Builder builder(WebhookReceiverResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String identifierUri;
        private String name;
        private @Nullable String objectId;
        private String serviceUri;
        private @Nullable String tenantId;
        private @Nullable Boolean useAadAuth;
        private @Nullable Boolean useCommonAlertSchema;
        public Builder() {}
        public Builder(WebhookReceiverResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.identifierUri = defaults.identifierUri;
    	      this.name = defaults.name;
    	      this.objectId = defaults.objectId;
    	      this.serviceUri = defaults.serviceUri;
    	      this.tenantId = defaults.tenantId;
    	      this.useAadAuth = defaults.useAadAuth;
    	      this.useCommonAlertSchema = defaults.useCommonAlertSchema;
        }

        @CustomType.Setter
        public Builder identifierUri(@Nullable String identifierUri) {

            this.identifierUri = identifierUri;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("WebhookReceiverResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder objectId(@Nullable String objectId) {

            this.objectId = objectId;
            return this;
        }
        @CustomType.Setter
        public Builder serviceUri(String serviceUri) {
            if (serviceUri == null) {
              throw new MissingRequiredPropertyException("WebhookReceiverResponse", "serviceUri");
            }
            this.serviceUri = serviceUri;
            return this;
        }
        @CustomType.Setter
        public Builder tenantId(@Nullable String tenantId) {

            this.tenantId = tenantId;
            return this;
        }
        @CustomType.Setter
        public Builder useAadAuth(@Nullable Boolean useAadAuth) {

            this.useAadAuth = useAadAuth;
            return this;
        }
        @CustomType.Setter
        public Builder useCommonAlertSchema(@Nullable Boolean useCommonAlertSchema) {

            this.useCommonAlertSchema = useCommonAlertSchema;
            return this;
        }
        public WebhookReceiverResponse build() {
            final var _resultValue = new WebhookReceiverResponse();
            _resultValue.identifierUri = identifierUri;
            _resultValue.name = name;
            _resultValue.objectId = objectId;
            _resultValue.serviceUri = serviceUri;
            _resultValue.tenantId = tenantId;
            _resultValue.useAadAuth = useAadAuth;
            _resultValue.useCommonAlertSchema = useCommonAlertSchema;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy