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

com.pulumi.azure.automation.inputs.WatcherState 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.automation.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WatcherState Empty = new WatcherState();

    /**
     * The ID of Automation Account to manage this Watcher. Changing this forces a new Watcher to be created.
     * 
     */
    @Import(name="automationAccountId")
    private @Nullable Output automationAccountId;

    /**
     * @return The ID of Automation Account to manage this Watcher. Changing this forces a new Watcher to be created.
     * 
     */
    public Optional> automationAccountId() {
        return Optional.ofNullable(this.automationAccountId);
    }

    /**
     * A description of this Automation Watcher.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description of this Automation Watcher.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * A string of etag assigned to this Automation Watcher.
     * 
     */
    @Import(name="etag")
    private @Nullable Output etag;

    /**
     * @return A string of etag assigned to this Automation Watcher.
     * 
     */
    public Optional> etag() {
        return Optional.ofNullable(this.etag);
    }

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

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

    /**
     * The Azure Region where the Automation Watcher should exist. Changing this forces a new Automation Watcher to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The Azure Region where the Automation Watcher should exist. Changing this forces a new Automation Watcher to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name which should be used for this Automation Watcher. Changing this forces a new Automation Watcher to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Automation Watcher. Changing this forces a new Automation Watcher to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specify the name of an existing runbook this watcher is attached to. Changing this forces a new Automation to be created.
     * 
     */
    @Import(name="scriptName")
    private @Nullable Output scriptName;

    /**
     * @return Specify the name of an existing runbook this watcher is attached to. Changing this forces a new Automation to be created.
     * 
     */
    public Optional> scriptName() {
        return Optional.ofNullable(this.scriptName);
    }

    /**
     * Specifies a list of key-vaule parameters. Changing this forces a new Automation watcher to be created.
     * 
     */
    @Import(name="scriptParameters")
    private @Nullable Output> scriptParameters;

    /**
     * @return Specifies a list of key-vaule parameters. Changing this forces a new Automation watcher to be created.
     * 
     */
    public Optional>> scriptParameters() {
        return Optional.ofNullable(this.scriptParameters);
    }

    /**
     * Specify the name of the Hybrid work group the watcher will run on.
     * 
     */
    @Import(name="scriptRunOn")
    private @Nullable Output scriptRunOn;

    /**
     * @return Specify the name of the Hybrid work group the watcher will run on.
     * 
     */
    public Optional> scriptRunOn() {
        return Optional.ofNullable(this.scriptRunOn);
    }

    /**
     * The current status of the Automation Watcher.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The current status of the Automation Watcher.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * A mapping of tags which should be assigned to the Automation Watcher.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the Automation Watcher.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private WatcherState() {}

    private WatcherState(WatcherState $) {
        this.automationAccountId = $.automationAccountId;
        this.description = $.description;
        this.etag = $.etag;
        this.executionFrequencyInSeconds = $.executionFrequencyInSeconds;
        this.location = $.location;
        this.name = $.name;
        this.scriptName = $.scriptName;
        this.scriptParameters = $.scriptParameters;
        this.scriptRunOn = $.scriptRunOn;
        this.status = $.status;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private WatcherState $;

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

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

        /**
         * @param automationAccountId The ID of Automation Account to manage this Watcher. Changing this forces a new Watcher to be created.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountId(@Nullable Output automationAccountId) {
            $.automationAccountId = automationAccountId;
            return this;
        }

        /**
         * @param automationAccountId The ID of Automation Account to manage this Watcher. Changing this forces a new Watcher to be created.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountId(String automationAccountId) {
            return automationAccountId(Output.of(automationAccountId));
        }

        /**
         * @param description A description of this Automation Watcher.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description of this Automation Watcher.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param etag A string of etag assigned to this Automation Watcher.
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag A string of etag assigned to this Automation Watcher.
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

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

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

        /**
         * @param location The Azure Region where the Automation Watcher should exist. Changing this forces a new Automation Watcher to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The Azure Region where the Automation Watcher should exist. Changing this forces a new Automation Watcher to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The name which should be used for this Automation Watcher. Changing this forces a new Automation Watcher to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Automation Watcher. Changing this forces a new Automation Watcher to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param scriptName Specify the name of an existing runbook this watcher is attached to. Changing this forces a new Automation to be created.
         * 
         * @return builder
         * 
         */
        public Builder scriptName(@Nullable Output scriptName) {
            $.scriptName = scriptName;
            return this;
        }

        /**
         * @param scriptName Specify the name of an existing runbook this watcher is attached to. Changing this forces a new Automation to be created.
         * 
         * @return builder
         * 
         */
        public Builder scriptName(String scriptName) {
            return scriptName(Output.of(scriptName));
        }

        /**
         * @param scriptParameters Specifies a list of key-vaule parameters. Changing this forces a new Automation watcher to be created.
         * 
         * @return builder
         * 
         */
        public Builder scriptParameters(@Nullable Output> scriptParameters) {
            $.scriptParameters = scriptParameters;
            return this;
        }

        /**
         * @param scriptParameters Specifies a list of key-vaule parameters. Changing this forces a new Automation watcher to be created.
         * 
         * @return builder
         * 
         */
        public Builder scriptParameters(Map scriptParameters) {
            return scriptParameters(Output.of(scriptParameters));
        }

        /**
         * @param scriptRunOn Specify the name of the Hybrid work group the watcher will run on.
         * 
         * @return builder
         * 
         */
        public Builder scriptRunOn(@Nullable Output scriptRunOn) {
            $.scriptRunOn = scriptRunOn;
            return this;
        }

        /**
         * @param scriptRunOn Specify the name of the Hybrid work group the watcher will run on.
         * 
         * @return builder
         * 
         */
        public Builder scriptRunOn(String scriptRunOn) {
            return scriptRunOn(Output.of(scriptRunOn));
        }

        /**
         * @param status The current status of the Automation Watcher.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The current status of the Automation Watcher.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Automation Watcher.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Automation Watcher.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public WatcherState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy