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

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

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetWatcherResult {
    /**
     * @return Gets or sets the creation time.
     * 
     */
    private String creationTime;
    /**
     * @return Gets or sets the description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Gets or sets the etag of the resource.
     * 
     */
    private @Nullable String etag;
    /**
     * @return Gets or sets the frequency at which the watcher is invoked.
     * 
     */
    private @Nullable Double executionFrequencyInSeconds;
    /**
     * @return Fully qualified resource Id for the resource
     * 
     */
    private String id;
    /**
     * @return Details of the user who last modified the watcher.
     * 
     */
    private String lastModifiedBy;
    /**
     * @return Gets or sets the last modified time.
     * 
     */
    private String lastModifiedTime;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private @Nullable String location;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
     * 
     */
    private @Nullable String scriptName;
    /**
     * @return Gets or sets the parameters of the script.
     * 
     */
    private @Nullable Map scriptParameters;
    /**
     * @return Gets or sets the name of the hybrid worker group the watcher will run on.
     * 
     */
    private @Nullable String scriptRunOn;
    /**
     * @return Gets the current status of the watcher.
     * 
     */
    private String status;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;

    private GetWatcherResult() {}
    /**
     * @return Gets or sets the creation time.
     * 
     */
    public String creationTime() {
        return this.creationTime;
    }
    /**
     * @return Gets or sets the description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Gets or sets the etag of the resource.
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return Gets or sets the frequency at which the watcher is invoked.
     * 
     */
    public Optional executionFrequencyInSeconds() {
        return Optional.ofNullable(this.executionFrequencyInSeconds);
    }
    /**
     * @return Fully qualified resource Id for the resource
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Details of the user who last modified the watcher.
     * 
     */
    public String lastModifiedBy() {
        return this.lastModifiedBy;
    }
    /**
     * @return Gets or sets the last modified time.
     * 
     */
    public String lastModifiedTime() {
        return this.lastModifiedTime;
    }
    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @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);
    }
    /**
     * @return Gets or sets the parameters of the script.
     * 
     */
    public Map scriptParameters() {
        return this.scriptParameters == null ? Map.of() : this.scriptParameters;
    }
    /**
     * @return Gets or sets the name of the hybrid worker group the watcher will run on.
     * 
     */
    public Optional scriptRunOn() {
        return Optional.ofNullable(this.scriptRunOn);
    }
    /**
     * @return Gets the current status of the watcher.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetWatcherResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String creationTime;
        private @Nullable String description;
        private @Nullable String etag;
        private @Nullable Double executionFrequencyInSeconds;
        private String id;
        private String lastModifiedBy;
        private String lastModifiedTime;
        private @Nullable String location;
        private String name;
        private @Nullable String scriptName;
        private @Nullable Map scriptParameters;
        private @Nullable String scriptRunOn;
        private String status;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetWatcherResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.creationTime = defaults.creationTime;
    	      this.description = defaults.description;
    	      this.etag = defaults.etag;
    	      this.executionFrequencyInSeconds = defaults.executionFrequencyInSeconds;
    	      this.id = defaults.id;
    	      this.lastModifiedBy = defaults.lastModifiedBy;
    	      this.lastModifiedTime = defaults.lastModifiedTime;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.scriptName = defaults.scriptName;
    	      this.scriptParameters = defaults.scriptParameters;
    	      this.scriptRunOn = defaults.scriptRunOn;
    	      this.status = defaults.status;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder creationTime(String creationTime) {
            if (creationTime == null) {
              throw new MissingRequiredPropertyException("GetWatcherResult", "creationTime");
            }
            this.creationTime = creationTime;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder etag(@Nullable String etag) {

            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder executionFrequencyInSeconds(@Nullable Double executionFrequencyInSeconds) {

            this.executionFrequencyInSeconds = executionFrequencyInSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetWatcherResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder lastModifiedBy(String lastModifiedBy) {
            if (lastModifiedBy == null) {
              throw new MissingRequiredPropertyException("GetWatcherResult", "lastModifiedBy");
            }
            this.lastModifiedBy = lastModifiedBy;
            return this;
        }
        @CustomType.Setter
        public Builder lastModifiedTime(String lastModifiedTime) {
            if (lastModifiedTime == null) {
              throw new MissingRequiredPropertyException("GetWatcherResult", "lastModifiedTime");
            }
            this.lastModifiedTime = lastModifiedTime;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

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

            this.scriptName = scriptName;
            return this;
        }
        @CustomType.Setter
        public Builder scriptParameters(@Nullable Map scriptParameters) {

            this.scriptParameters = scriptParameters;
            return this;
        }
        @CustomType.Setter
        public Builder scriptRunOn(@Nullable String scriptRunOn) {

            this.scriptRunOn = scriptRunOn;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetWatcherResult", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetWatcherResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetWatcherResult build() {
            final var _resultValue = new GetWatcherResult();
            _resultValue.creationTime = creationTime;
            _resultValue.description = description;
            _resultValue.etag = etag;
            _resultValue.executionFrequencyInSeconds = executionFrequencyInSeconds;
            _resultValue.id = id;
            _resultValue.lastModifiedBy = lastModifiedBy;
            _resultValue.lastModifiedTime = lastModifiedTime;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.scriptName = scriptName;
            _resultValue.scriptParameters = scriptParameters;
            _resultValue.scriptRunOn = scriptRunOn;
            _resultValue.status = status;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy