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

com.pulumi.azurenative.compute.inputs.InstanceViewStatusArgs 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.compute.inputs;

import com.pulumi.azurenative.compute.enums.StatusLevelTypes;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Instance view status.
 * 
 */
public final class InstanceViewStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final InstanceViewStatusArgs Empty = new InstanceViewStatusArgs();

    /**
     * The status code.
     * 
     */
    @Import(name="code")
    private @Nullable Output code;

    /**
     * @return The status code.
     * 
     */
    public Optional> code() {
        return Optional.ofNullable(this.code);
    }

    /**
     * The short localizable label for the status.
     * 
     */
    @Import(name="displayStatus")
    private @Nullable Output displayStatus;

    /**
     * @return The short localizable label for the status.
     * 
     */
    public Optional> displayStatus() {
        return Optional.ofNullable(this.displayStatus);
    }

    /**
     * The level code.
     * 
     */
    @Import(name="level")
    private @Nullable Output level;

    /**
     * @return The level code.
     * 
     */
    public Optional> level() {
        return Optional.ofNullable(this.level);
    }

    /**
     * The detailed status message, including for alerts and error messages.
     * 
     */
    @Import(name="message")
    private @Nullable Output message;

    /**
     * @return The detailed status message, including for alerts and error messages.
     * 
     */
    public Optional> message() {
        return Optional.ofNullable(this.message);
    }

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

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

    private InstanceViewStatusArgs() {}

    private InstanceViewStatusArgs(InstanceViewStatusArgs $) {
        this.code = $.code;
        this.displayStatus = $.displayStatus;
        this.level = $.level;
        this.message = $.message;
        this.time = $.time;
    }

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

    public static final class Builder {
        private InstanceViewStatusArgs $;

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

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

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

        /**
         * @param code The status code.
         * 
         * @return builder
         * 
         */
        public Builder code(String code) {
            return code(Output.of(code));
        }

        /**
         * @param displayStatus The short localizable label for the status.
         * 
         * @return builder
         * 
         */
        public Builder displayStatus(@Nullable Output displayStatus) {
            $.displayStatus = displayStatus;
            return this;
        }

        /**
         * @param displayStatus The short localizable label for the status.
         * 
         * @return builder
         * 
         */
        public Builder displayStatus(String displayStatus) {
            return displayStatus(Output.of(displayStatus));
        }

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

        /**
         * @param level The level code.
         * 
         * @return builder
         * 
         */
        public Builder level(StatusLevelTypes level) {
            return level(Output.of(level));
        }

        /**
         * @param message The detailed status message, including for alerts and error messages.
         * 
         * @return builder
         * 
         */
        public Builder message(@Nullable Output message) {
            $.message = message;
            return this;
        }

        /**
         * @param message The detailed status message, including for alerts and error messages.
         * 
         * @return builder
         * 
         */
        public Builder message(String message) {
            return message(Output.of(message));
        }

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

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

        public InstanceViewStatusArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy