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

com.pulumi.azurenative.hybridcompute.inputs.MachineExtensionInstanceViewStatusArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.hybridcompute.inputs;

import com.pulumi.azurenative.hybridcompute.enums.StatusLevelTypes;
import com.pulumi.core.Either;
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 MachineExtensionInstanceViewStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final MachineExtensionInstanceViewStatusArgs Empty = new MachineExtensionInstanceViewStatusArgs();

    /**
     * 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 MachineExtensionInstanceViewStatusArgs() {}

    private MachineExtensionInstanceViewStatusArgs(MachineExtensionInstanceViewStatusArgs $) {
        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(MachineExtensionInstanceViewStatusArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private MachineExtensionInstanceViewStatusArgs $;

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

        public Builder(MachineExtensionInstanceViewStatusArgs defaults) {
            $ = new MachineExtensionInstanceViewStatusArgs(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(Either level) {
            return level(Output.of(level));
        }

        /**
         * @param level The level code.
         * 
         * @return builder
         * 
         */
        public Builder level(String level) {
            return level(Either.ofLeft(level));
        }

        /**
         * @param level The level code.
         * 
         * @return builder
         * 
         */
        public Builder level(StatusLevelTypes level) {
            return level(Either.ofRight(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 MachineExtensionInstanceViewStatusArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy