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

com.pulumi.azurenative.automation.WebhookArgs 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.automation;

import com.pulumi.azurenative.automation.inputs.RunbookAssociationPropertyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class WebhookArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebhookArgs Empty = new WebhookArgs();

    /**
     * The name of the automation account.
     * 
     */
    @Import(name="automationAccountName", required=true)
    private Output automationAccountName;

    /**
     * @return The name of the automation account.
     * 
     */
    public Output automationAccountName() {
        return this.automationAccountName;
    }

    /**
     * Gets or sets the expiry time.
     * 
     */
    @Import(name="expiryTime")
    private @Nullable Output expiryTime;

    /**
     * @return Gets or sets the expiry time.
     * 
     */
    public Optional> expiryTime() {
        return Optional.ofNullable(this.expiryTime);
    }

    /**
     * Gets or sets the value of the enabled flag of webhook.
     * 
     */
    @Import(name="isEnabled")
    private @Nullable Output isEnabled;

    /**
     * @return Gets or sets the value of the enabled flag of webhook.
     * 
     */
    public Optional> isEnabled() {
        return Optional.ofNullable(this.isEnabled);
    }

    /**
     * Gets or sets the name of the webhook.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Gets or sets the name of the webhook.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Gets or sets the parameters of the job.
     * 
     */
    @Import(name="parameters")
    private @Nullable Output> parameters;

    /**
     * @return Gets or sets the parameters of the job.
     * 
     */
    public Optional>> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * Name of an Azure Resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of an Azure Resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Gets or sets the name of the hybrid worker group the webhook job will run on.
     * 
     */
    @Import(name="runOn")
    private @Nullable Output runOn;

    /**
     * @return Gets or sets the name of the hybrid worker group the webhook job will run on.
     * 
     */
    public Optional> runOn() {
        return Optional.ofNullable(this.runOn);
    }

    /**
     * Gets or sets the runbook.
     * 
     */
    @Import(name="runbook")
    private @Nullable Output runbook;

    /**
     * @return Gets or sets the runbook.
     * 
     */
    public Optional> runbook() {
        return Optional.ofNullable(this.runbook);
    }

    /**
     * Gets or sets the uri.
     * 
     */
    @Import(name="uri")
    private @Nullable Output uri;

    /**
     * @return Gets or sets the uri.
     * 
     */
    public Optional> uri() {
        return Optional.ofNullable(this.uri);
    }

    /**
     * The webhook name.
     * 
     */
    @Import(name="webhookName")
    private @Nullable Output webhookName;

    /**
     * @return The webhook name.
     * 
     */
    public Optional> webhookName() {
        return Optional.ofNullable(this.webhookName);
    }

    private WebhookArgs() {}

    private WebhookArgs(WebhookArgs $) {
        this.automationAccountName = $.automationAccountName;
        this.expiryTime = $.expiryTime;
        this.isEnabled = $.isEnabled;
        this.name = $.name;
        this.parameters = $.parameters;
        this.resourceGroupName = $.resourceGroupName;
        this.runOn = $.runOn;
        this.runbook = $.runbook;
        this.uri = $.uri;
        this.webhookName = $.webhookName;
    }

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

    public static final class Builder {
        private WebhookArgs $;

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

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

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(Output automationAccountName) {
            $.automationAccountName = automationAccountName;
            return this;
        }

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(String automationAccountName) {
            return automationAccountName(Output.of(automationAccountName));
        }

        /**
         * @param expiryTime Gets or sets the expiry time.
         * 
         * @return builder
         * 
         */
        public Builder expiryTime(@Nullable Output expiryTime) {
            $.expiryTime = expiryTime;
            return this;
        }

        /**
         * @param expiryTime Gets or sets the expiry time.
         * 
         * @return builder
         * 
         */
        public Builder expiryTime(String expiryTime) {
            return expiryTime(Output.of(expiryTime));
        }

        /**
         * @param isEnabled Gets or sets the value of the enabled flag of webhook.
         * 
         * @return builder
         * 
         */
        public Builder isEnabled(@Nullable Output isEnabled) {
            $.isEnabled = isEnabled;
            return this;
        }

        /**
         * @param isEnabled Gets or sets the value of the enabled flag of webhook.
         * 
         * @return builder
         * 
         */
        public Builder isEnabled(Boolean isEnabled) {
            return isEnabled(Output.of(isEnabled));
        }

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

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

        /**
         * @param parameters Gets or sets the parameters of the job.
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters Gets or sets the parameters of the job.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param runOn Gets or sets the name of the hybrid worker group the webhook job will run on.
         * 
         * @return builder
         * 
         */
        public Builder runOn(@Nullable Output runOn) {
            $.runOn = runOn;
            return this;
        }

        /**
         * @param runOn Gets or sets the name of the hybrid worker group the webhook job will run on.
         * 
         * @return builder
         * 
         */
        public Builder runOn(String runOn) {
            return runOn(Output.of(runOn));
        }

        /**
         * @param runbook Gets or sets the runbook.
         * 
         * @return builder
         * 
         */
        public Builder runbook(@Nullable Output runbook) {
            $.runbook = runbook;
            return this;
        }

        /**
         * @param runbook Gets or sets the runbook.
         * 
         * @return builder
         * 
         */
        public Builder runbook(RunbookAssociationPropertyArgs runbook) {
            return runbook(Output.of(runbook));
        }

        /**
         * @param uri Gets or sets the uri.
         * 
         * @return builder
         * 
         */
        public Builder uri(@Nullable Output uri) {
            $.uri = uri;
            return this;
        }

        /**
         * @param uri Gets or sets the uri.
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

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

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

        public WebhookArgs build() {
            if ($.automationAccountName == null) {
                throw new MissingRequiredPropertyException("WebhookArgs", "automationAccountName");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("WebhookArgs", "name");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WebhookArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy