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

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

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


/**
 * The Azure Automation Runbook notification receiver.
 * 
 */
public final class AutomationRunbookReceiverArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutomationRunbookReceiverArgs Empty = new AutomationRunbookReceiverArgs();

    /**
     * The Azure automation account Id which holds this runbook and authenticate to Azure resource.
     * 
     */
    @Import(name="automationAccountId", required=true)
    private Output automationAccountId;

    /**
     * @return The Azure automation account Id which holds this runbook and authenticate to Azure resource.
     * 
     */
    public Output automationAccountId() {
        return this.automationAccountId;
    }

    /**
     * Indicates whether this instance is global runbook.
     * 
     */
    @Import(name="isGlobalRunbook", required=true)
    private Output isGlobalRunbook;

    /**
     * @return Indicates whether this instance is global runbook.
     * 
     */
    public Output isGlobalRunbook() {
        return this.isGlobalRunbook;
    }

    /**
     * Indicates name of the webhook.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Indicates name of the webhook.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name for this runbook.
     * 
     */
    @Import(name="runbookName", required=true)
    private Output runbookName;

    /**
     * @return The name for this runbook.
     * 
     */
    public Output runbookName() {
        return this.runbookName;
    }

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

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

    /**
     * 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);
    }

    /**
     * The resource id for webhook linked to this runbook.
     * 
     */
    @Import(name="webhookResourceId", required=true)
    private Output webhookResourceId;

    /**
     * @return The resource id for webhook linked to this runbook.
     * 
     */
    public Output webhookResourceId() {
        return this.webhookResourceId;
    }

    private AutomationRunbookReceiverArgs() {}

    private AutomationRunbookReceiverArgs(AutomationRunbookReceiverArgs $) {
        this.automationAccountId = $.automationAccountId;
        this.isGlobalRunbook = $.isGlobalRunbook;
        this.name = $.name;
        this.runbookName = $.runbookName;
        this.serviceUri = $.serviceUri;
        this.useCommonAlertSchema = $.useCommonAlertSchema;
        this.webhookResourceId = $.webhookResourceId;
    }

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

    public static final class Builder {
        private AutomationRunbookReceiverArgs $;

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

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

        /**
         * @param automationAccountId The Azure automation account Id which holds this runbook and authenticate to Azure resource.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountId(Output automationAccountId) {
            $.automationAccountId = automationAccountId;
            return this;
        }

        /**
         * @param automationAccountId The Azure automation account Id which holds this runbook and authenticate to Azure resource.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountId(String automationAccountId) {
            return automationAccountId(Output.of(automationAccountId));
        }

        /**
         * @param isGlobalRunbook Indicates whether this instance is global runbook.
         * 
         * @return builder
         * 
         */
        public Builder isGlobalRunbook(Output isGlobalRunbook) {
            $.isGlobalRunbook = isGlobalRunbook;
            return this;
        }

        /**
         * @param isGlobalRunbook Indicates whether this instance is global runbook.
         * 
         * @return builder
         * 
         */
        public Builder isGlobalRunbook(Boolean isGlobalRunbook) {
            return isGlobalRunbook(Output.of(isGlobalRunbook));
        }

        /**
         * @param name Indicates name of the webhook.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Indicates name of the webhook.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param runbookName The name for this runbook.
         * 
         * @return builder
         * 
         */
        public Builder runbookName(Output runbookName) {
            $.runbookName = runbookName;
            return this;
        }

        /**
         * @param runbookName The name for this runbook.
         * 
         * @return builder
         * 
         */
        public Builder runbookName(String runbookName) {
            return runbookName(Output.of(runbookName));
        }

        /**
         * @param serviceUri The URI where webhooks should be sent.
         * 
         * @return builder
         * 
         */
        public Builder serviceUri(@Nullable 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 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));
        }

        /**
         * @param webhookResourceId The resource id for webhook linked to this runbook.
         * 
         * @return builder
         * 
         */
        public Builder webhookResourceId(Output webhookResourceId) {
            $.webhookResourceId = webhookResourceId;
            return this;
        }

        /**
         * @param webhookResourceId The resource id for webhook linked to this runbook.
         * 
         * @return builder
         * 
         */
        public Builder webhookResourceId(String webhookResourceId) {
            return webhookResourceId(Output.of(webhookResourceId));
        }

        public AutomationRunbookReceiverArgs build() {
            if ($.automationAccountId == null) {
                throw new MissingRequiredPropertyException("AutomationRunbookReceiverArgs", "automationAccountId");
            }
            if ($.isGlobalRunbook == null) {
                throw new MissingRequiredPropertyException("AutomationRunbookReceiverArgs", "isGlobalRunbook");
            }
            if ($.runbookName == null) {
                throw new MissingRequiredPropertyException("AutomationRunbookReceiverArgs", "runbookName");
            }
            $.useCommonAlertSchema = Codegen.booleanProp("useCommonAlertSchema").output().arg($.useCommonAlertSchema).def(false).getNullable();
            if ($.webhookResourceId == null) {
                throw new MissingRequiredPropertyException("AutomationRunbookReceiverArgs", "webhookResourceId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy