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

com.pulumi.azurenative.azurestackhci.outputs.StepResponse 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.outputs;

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

@CustomType
public final class StepResponse {
    /**
     * @return More detailed description of the step.
     * 
     */
    private @Nullable String description;
    /**
     * @return When the step reached a terminal state.
     * 
     */
    private @Nullable String endTimeUtc;
    /**
     * @return Error message, specified if the step is in a failed state.
     * 
     */
    private @Nullable String errorMessage;
    /**
     * @return List of exceptions in AzureStackHCI Cluster Deployment.
     * 
     */
    private @Nullable List exception;
    /**
     * @return FullStepIndex of step.
     * 
     */
    private @Nullable String fullStepIndex;
    /**
     * @return Completion time of this step or the last completed sub-step.
     * 
     */
    private @Nullable String lastUpdatedTimeUtc;
    /**
     * @return Name of the step.
     * 
     */
    private @Nullable String name;
    /**
     * @return When the step started, or empty if it has not started executing.
     * 
     */
    private @Nullable String startTimeUtc;
    /**
     * @return Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.
     * 
     */
    private @Nullable String status;
    /**
     * @return Recursive model for child steps of this step.
     * 
     */
    private @Nullable List steps;

    private StepResponse() {}
    /**
     * @return More detailed description of the step.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return When the step reached a terminal state.
     * 
     */
    public Optional endTimeUtc() {
        return Optional.ofNullable(this.endTimeUtc);
    }
    /**
     * @return Error message, specified if the step is in a failed state.
     * 
     */
    public Optional errorMessage() {
        return Optional.ofNullable(this.errorMessage);
    }
    /**
     * @return List of exceptions in AzureStackHCI Cluster Deployment.
     * 
     */
    public List exception() {
        return this.exception == null ? List.of() : this.exception;
    }
    /**
     * @return FullStepIndex of step.
     * 
     */
    public Optional fullStepIndex() {
        return Optional.ofNullable(this.fullStepIndex);
    }
    /**
     * @return Completion time of this step or the last completed sub-step.
     * 
     */
    public Optional lastUpdatedTimeUtc() {
        return Optional.ofNullable(this.lastUpdatedTimeUtc);
    }
    /**
     * @return Name of the step.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return When the step started, or empty if it has not started executing.
     * 
     */
    public Optional startTimeUtc() {
        return Optional.ofNullable(this.startTimeUtc);
    }
    /**
     * @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);
    }
    /**
     * @return Recursive model for child steps of this step.
     * 
     */
    public List steps() {
        return this.steps == null ? List.of() : this.steps;
    }

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

    public static Builder builder(StepResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String description;
        private @Nullable String endTimeUtc;
        private @Nullable String errorMessage;
        private @Nullable List exception;
        private @Nullable String fullStepIndex;
        private @Nullable String lastUpdatedTimeUtc;
        private @Nullable String name;
        private @Nullable String startTimeUtc;
        private @Nullable String status;
        private @Nullable List steps;
        public Builder() {}
        public Builder(StepResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.endTimeUtc = defaults.endTimeUtc;
    	      this.errorMessage = defaults.errorMessage;
    	      this.exception = defaults.exception;
    	      this.fullStepIndex = defaults.fullStepIndex;
    	      this.lastUpdatedTimeUtc = defaults.lastUpdatedTimeUtc;
    	      this.name = defaults.name;
    	      this.startTimeUtc = defaults.startTimeUtc;
    	      this.status = defaults.status;
    	      this.steps = defaults.steps;
        }

        @CustomType.Setter
        public Builder description(@Nullable String description) {

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

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

            this.errorMessage = errorMessage;
            return this;
        }
        @CustomType.Setter
        public Builder exception(@Nullable List exception) {

            this.exception = exception;
            return this;
        }
        public Builder exception(String... exception) {
            return exception(List.of(exception));
        }
        @CustomType.Setter
        public Builder fullStepIndex(@Nullable String fullStepIndex) {

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

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

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

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

            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder steps(@Nullable List steps) {

            this.steps = steps;
            return this;
        }
        public Builder steps(StepResponse... steps) {
            return steps(List.of(steps));
        }
        public StepResponse build() {
            final var _resultValue = new StepResponse();
            _resultValue.description = description;
            _resultValue.endTimeUtc = endTimeUtc;
            _resultValue.errorMessage = errorMessage;
            _resultValue.exception = exception;
            _resultValue.fullStepIndex = fullStepIndex;
            _resultValue.lastUpdatedTimeUtc = lastUpdatedTimeUtc;
            _resultValue.name = name;
            _resultValue.startTimeUtc = startTimeUtc;
            _resultValue.status = status;
            _resultValue.steps = steps;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy