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

com.pulumi.azurenative.automation.WatcherArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WatcherArgs Empty = new WatcherArgs();

    /**
     * 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 description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

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

    /**
     * Gets or sets the frequency at which the watcher is invoked.
     * 
     */
    @Import(name="executionFrequencyInSeconds")
    private @Nullable Output executionFrequencyInSeconds;

    /**
     * @return Gets or sets the frequency at which the watcher is invoked.
     * 
     */
    public Optional> executionFrequencyInSeconds() {
        return Optional.ofNullable(this.executionFrequencyInSeconds);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * 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 script the watcher is attached to, i.e. the name of an existing runbook.
     * 
     */
    @Import(name="scriptName")
    private @Nullable Output scriptName;

    /**
     * @return Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
     * 
     */
    public Optional> scriptName() {
        return Optional.ofNullable(this.scriptName);
    }

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

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

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

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

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The watcher name.
     * 
     */
    @Import(name="watcherName")
    private @Nullable Output watcherName;

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

    private WatcherArgs() {}

    private WatcherArgs(WatcherArgs $) {
        this.automationAccountName = $.automationAccountName;
        this.description = $.description;
        this.executionFrequencyInSeconds = $.executionFrequencyInSeconds;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.scriptName = $.scriptName;
        this.scriptParameters = $.scriptParameters;
        this.scriptRunOn = $.scriptRunOn;
        this.tags = $.tags;
        this.watcherName = $.watcherName;
    }

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

    public static final class Builder {
        private WatcherArgs $;

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

        public Builder(WatcherArgs defaults) {
            $ = new WatcherArgs(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 description Gets or sets the description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

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

        /**
         * @param executionFrequencyInSeconds Gets or sets the frequency at which the watcher is invoked.
         * 
         * @return builder
         * 
         */
        public Builder executionFrequencyInSeconds(@Nullable Output executionFrequencyInSeconds) {
            $.executionFrequencyInSeconds = executionFrequencyInSeconds;
            return this;
        }

        /**
         * @param executionFrequencyInSeconds Gets or sets the frequency at which the watcher is invoked.
         * 
         * @return builder
         * 
         */
        public Builder executionFrequencyInSeconds(Double executionFrequencyInSeconds) {
            return executionFrequencyInSeconds(Output.of(executionFrequencyInSeconds));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @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 scriptName Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
         * 
         * @return builder
         * 
         */
        public Builder scriptName(@Nullable Output scriptName) {
            $.scriptName = scriptName;
            return this;
        }

        /**
         * @param scriptName Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
         * 
         * @return builder
         * 
         */
        public Builder scriptName(String scriptName) {
            return scriptName(Output.of(scriptName));
        }

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

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

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

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

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy