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

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

import com.pulumi.azurenative.azurestackhci.outputs.StepResponse;
import com.pulumi.azurenative.azurestackhci.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetUpdateRunResult {
    /**
     * @return More detailed description of the step.
     * 
     */
    private @Nullable String description;
    /**
     * @return Duration of the update run.
     * 
     */
    private @Nullable String duration;
    /**
     * @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 Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return Timestamp of the most recently completed step in the update run.
     * 
     */
    private @Nullable String lastUpdatedTime;
    /**
     * @return Completion time of this step or the last completed sub-step.
     * 
     */
    private @Nullable String lastUpdatedTimeUtc;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private @Nullable String location;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Provisioning state of the UpdateRuns proxy resource.
     * 
     */
    private String provisioningState;
    /**
     * @return When the step started, or empty if it has not started executing.
     * 
     */
    private @Nullable String startTimeUtc;
    /**
     * @return State of the update run.
     * 
     */
    private @Nullable String state;
    /**
     * @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;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Timestamp of the update run was started.
     * 
     */
    private @Nullable String timeStarted;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetUpdateRunResult() {}
    /**
     * @return More detailed description of the step.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Duration of the update run.
     * 
     */
    public Optional duration() {
        return Optional.ofNullable(this.duration);
    }
    /**
     * @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 Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Timestamp of the most recently completed step in the update run.
     * 
     */
    public Optional lastUpdatedTime() {
        return Optional.ofNullable(this.lastUpdatedTime);
    }
    /**
     * @return Completion time of this step or the last completed sub-step.
     * 
     */
    public Optional lastUpdatedTimeUtc() {
        return Optional.ofNullable(this.lastUpdatedTimeUtc);
    }
    /**
     * @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 Provisioning state of the UpdateRuns proxy resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return When the step started, or empty if it has not started executing.
     * 
     */
    public Optional startTimeUtc() {
        return Optional.ofNullable(this.startTimeUtc);
    }
    /**
     * @return State of the update run.
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }
    /**
     * @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;
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Timestamp of the update run was started.
     * 
     */
    public Optional timeStarted() {
        return Optional.ofNullable(this.timeStarted);
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetUpdateRunResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String description;
        private @Nullable String duration;
        private @Nullable String endTimeUtc;
        private @Nullable String errorMessage;
        private String id;
        private @Nullable String lastUpdatedTime;
        private @Nullable String lastUpdatedTimeUtc;
        private @Nullable String location;
        private String name;
        private String provisioningState;
        private @Nullable String startTimeUtc;
        private @Nullable String state;
        private @Nullable String status;
        private @Nullable List steps;
        private SystemDataResponse systemData;
        private @Nullable String timeStarted;
        private String type;
        public Builder() {}
        public Builder(GetUpdateRunResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.duration = defaults.duration;
    	      this.endTimeUtc = defaults.endTimeUtc;
    	      this.errorMessage = defaults.errorMessage;
    	      this.id = defaults.id;
    	      this.lastUpdatedTime = defaults.lastUpdatedTime;
    	      this.lastUpdatedTimeUtc = defaults.lastUpdatedTimeUtc;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.startTimeUtc = defaults.startTimeUtc;
    	      this.state = defaults.state;
    	      this.status = defaults.status;
    	      this.steps = defaults.steps;
    	      this.systemData = defaults.systemData;
    	      this.timeStarted = defaults.timeStarted;
    	      this.type = defaults.type;
        }

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

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

            this.duration = duration;
            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 id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetUpdateRunResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder lastUpdatedTime(@Nullable String lastUpdatedTime) {

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

            this.lastUpdatedTimeUtc = lastUpdatedTimeUtc;
            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("GetUpdateRunResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetUpdateRunResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder startTimeUtc(@Nullable String startTimeUtc) {

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

            this.state = state;
            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));
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetUpdateRunResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder timeStarted(@Nullable String timeStarted) {

            this.timeStarted = timeStarted;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetUpdateRunResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetUpdateRunResult build() {
            final var _resultValue = new GetUpdateRunResult();
            _resultValue.description = description;
            _resultValue.duration = duration;
            _resultValue.endTimeUtc = endTimeUtc;
            _resultValue.errorMessage = errorMessage;
            _resultValue.id = id;
            _resultValue.lastUpdatedTime = lastUpdatedTime;
            _resultValue.lastUpdatedTimeUtc = lastUpdatedTimeUtc;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.startTimeUtc = startTimeUtc;
            _resultValue.state = state;
            _resultValue.status = status;
            _resultValue.steps = steps;
            _resultValue.systemData = systemData;
            _resultValue.timeStarted = timeStarted;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy