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

com.pulumi.azurenative.azurestackhci.inputs.StepArgs 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.azurestackhci.inputs;

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


/**
 * Progress representation of the update run steps.
 * 
 */
public final class StepArgs extends com.pulumi.resources.ResourceArgs {

    public static final StepArgs Empty = new StepArgs();

    /**
     * More detailed description of the step.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return More detailed description of the step.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * When the step reached a terminal state.
     * 
     */
    @Import(name="endTimeUtc")
    private @Nullable Output endTimeUtc;

    /**
     * @return When the step reached a terminal state.
     * 
     */
    public Optional> endTimeUtc() {
        return Optional.ofNullable(this.endTimeUtc);
    }

    /**
     * Error message, specified if the step is in a failed state.
     * 
     */
    @Import(name="errorMessage")
    private @Nullable Output errorMessage;

    /**
     * @return Error message, specified if the step is in a failed state.
     * 
     */
    public Optional> errorMessage() {
        return Optional.ofNullable(this.errorMessage);
    }

    /**
     * Completion time of this step or the last completed sub-step.
     * 
     */
    @Import(name="lastUpdatedTimeUtc")
    private @Nullable Output lastUpdatedTimeUtc;

    /**
     * @return Completion time of this step or the last completed sub-step.
     * 
     */
    public Optional> lastUpdatedTimeUtc() {
        return Optional.ofNullable(this.lastUpdatedTimeUtc);
    }

    /**
     * Name of the step.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the step.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * When the step started, or empty if it has not started executing.
     * 
     */
    @Import(name="startTimeUtc")
    private @Nullable Output startTimeUtc;

    /**
     * @return When the step started, or empty if it has not started executing.
     * 
     */
    public Optional> startTimeUtc() {
        return Optional.ofNullable(this.startTimeUtc);
    }

    /**
     * Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * Recursive model for child steps of this step.
     * 
     */
    @Import(name="steps")
    private @Nullable Output> steps;

    /**
     * @return Recursive model for child steps of this step.
     * 
     */
    public Optional>> steps() {
        return Optional.ofNullable(this.steps);
    }

    private StepArgs() {}

    private StepArgs(StepArgs $) {
        this.description = $.description;
        this.endTimeUtc = $.endTimeUtc;
        this.errorMessage = $.errorMessage;
        this.lastUpdatedTimeUtc = $.lastUpdatedTimeUtc;
        this.name = $.name;
        this.startTimeUtc = $.startTimeUtc;
        this.status = $.status;
        this.steps = $.steps;
    }

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

    public static final class Builder {
        private StepArgs $;

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

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

        /**
         * @param description More detailed description of the step.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description More detailed description of the step.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param endTimeUtc When the step reached a terminal state.
         * 
         * @return builder
         * 
         */
        public Builder endTimeUtc(@Nullable Output endTimeUtc) {
            $.endTimeUtc = endTimeUtc;
            return this;
        }

        /**
         * @param endTimeUtc When the step reached a terminal state.
         * 
         * @return builder
         * 
         */
        public Builder endTimeUtc(String endTimeUtc) {
            return endTimeUtc(Output.of(endTimeUtc));
        }

        /**
         * @param errorMessage Error message, specified if the step is in a failed state.
         * 
         * @return builder
         * 
         */
        public Builder errorMessage(@Nullable Output errorMessage) {
            $.errorMessage = errorMessage;
            return this;
        }

        /**
         * @param errorMessage Error message, specified if the step is in a failed state.
         * 
         * @return builder
         * 
         */
        public Builder errorMessage(String errorMessage) {
            return errorMessage(Output.of(errorMessage));
        }

        /**
         * @param lastUpdatedTimeUtc Completion time of this step or the last completed sub-step.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdatedTimeUtc(@Nullable Output lastUpdatedTimeUtc) {
            $.lastUpdatedTimeUtc = lastUpdatedTimeUtc;
            return this;
        }

        /**
         * @param lastUpdatedTimeUtc Completion time of this step or the last completed sub-step.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdatedTimeUtc(String lastUpdatedTimeUtc) {
            return lastUpdatedTimeUtc(Output.of(lastUpdatedTimeUtc));
        }

        /**
         * @param name Name of the step.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the step.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param startTimeUtc When the step started, or empty if it has not started executing.
         * 
         * @return builder
         * 
         */
        public Builder startTimeUtc(@Nullable Output startTimeUtc) {
            $.startTimeUtc = startTimeUtc;
            return this;
        }

        /**
         * @param startTimeUtc When the step started, or empty if it has not started executing.
         * 
         * @return builder
         * 
         */
        public Builder startTimeUtc(String startTimeUtc) {
            return startTimeUtc(Output.of(startTimeUtc));
        }

        /**
         * @param status Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param steps Recursive model for child steps of this step.
         * 
         * @return builder
         * 
         */
        public Builder steps(@Nullable Output> steps) {
            $.steps = steps;
            return this;
        }

        /**
         * @param steps Recursive model for child steps of this step.
         * 
         * @return builder
         * 
         */
        public Builder steps(List steps) {
            return steps(Output.of(steps));
        }

        /**
         * @param steps Recursive model for child steps of this step.
         * 
         * @return builder
         * 
         */
        public Builder steps(StepArgs... steps) {
            return steps(List.of(steps));
        }

        public StepArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy