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

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

import com.pulumi.azurenative.azurestackhci.enums.UpdateRunPropertiesState;
import com.pulumi.azurenative.azurestackhci.inputs.StepArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


public final class UpdateRunArgs extends com.pulumi.resources.ResourceArgs {

    public static final UpdateRunArgs Empty = new UpdateRunArgs();

    /**
     * The name of the cluster.
     * 
     */
    @Import(name="clusterName", required=true)
    private Output clusterName;

    /**
     * @return The name of the cluster.
     * 
     */
    public Output clusterName() {
        return this.clusterName;
    }

    /**
     * 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);
    }

    /**
     * Duration of the update run.
     * 
     */
    @Import(name="duration")
    private @Nullable Output duration;

    /**
     * @return Duration of the update run.
     * 
     */
    public Optional> duration() {
        return Optional.ofNullable(this.duration);
    }

    /**
     * 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);
    }

    /**
     * Timestamp of the most recently completed step in the update run.
     * 
     */
    @Import(name="lastUpdatedTime")
    private @Nullable Output lastUpdatedTime;

    /**
     * @return Timestamp of the most recently completed step in the update run.
     * 
     */
    public Optional> lastUpdatedTime() {
        return Optional.ofNullable(this.lastUpdatedTime);
    }

    /**
     * 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);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

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

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * 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);
    }

    /**
     * State of the update run.
     * 
     */
    @Import(name="state")
    private @Nullable Output> state;

    /**
     * @return State of the update run.
     * 
     */
    public Optional>> state() {
        return Optional.ofNullable(this.state);
    }

    /**
     * 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);
    }

    /**
     * Timestamp of the update run was started.
     * 
     */
    @Import(name="timeStarted")
    private @Nullable Output timeStarted;

    /**
     * @return Timestamp of the update run was started.
     * 
     */
    public Optional> timeStarted() {
        return Optional.ofNullable(this.timeStarted);
    }

    /**
     * The name of the Update
     * 
     */
    @Import(name="updateName", required=true)
    private Output updateName;

    /**
     * @return The name of the Update
     * 
     */
    public Output updateName() {
        return this.updateName;
    }

    /**
     * The name of the Update Run
     * 
     */
    @Import(name="updateRunName")
    private @Nullable Output updateRunName;

    /**
     * @return The name of the Update Run
     * 
     */
    public Optional> updateRunName() {
        return Optional.ofNullable(this.updateRunName);
    }

    private UpdateRunArgs() {}

    private UpdateRunArgs(UpdateRunArgs $) {
        this.clusterName = $.clusterName;
        this.description = $.description;
        this.duration = $.duration;
        this.endTimeUtc = $.endTimeUtc;
        this.errorMessage = $.errorMessage;
        this.lastUpdatedTime = $.lastUpdatedTime;
        this.lastUpdatedTimeUtc = $.lastUpdatedTimeUtc;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.startTimeUtc = $.startTimeUtc;
        this.state = $.state;
        this.status = $.status;
        this.steps = $.steps;
        this.timeStarted = $.timeStarted;
        this.updateName = $.updateName;
        this.updateRunName = $.updateRunName;
    }

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

    public static final class Builder {
        private UpdateRunArgs $;

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

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

        /**
         * @param clusterName The name of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName The name of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @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 duration Duration of the update run.
         * 
         * @return builder
         * 
         */
        public Builder duration(@Nullable Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration Duration of the update run.
         * 
         * @return builder
         * 
         */
        public Builder duration(String duration) {
            return duration(Output.of(duration));
        }

        /**
         * @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 lastUpdatedTime Timestamp of the most recently completed step in the update run.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdatedTime(@Nullable Output lastUpdatedTime) {
            $.lastUpdatedTime = lastUpdatedTime;
            return this;
        }

        /**
         * @param lastUpdatedTime Timestamp of the most recently completed step in the update run.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdatedTime(String lastUpdatedTime) {
            return lastUpdatedTime(Output.of(lastUpdatedTime));
        }

        /**
         * @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 location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @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 resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @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 state State of the update run.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output> state) {
            $.state = state;
            return this;
        }

        /**
         * @param state State of the update run.
         * 
         * @return builder
         * 
         */
        public Builder state(Either state) {
            return state(Output.of(state));
        }

        /**
         * @param state State of the update run.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Either.ofLeft(state));
        }

        /**
         * @param state State of the update run.
         * 
         * @return builder
         * 
         */
        public Builder state(UpdateRunPropertiesState state) {
            return state(Either.ofRight(state));
        }

        /**
         * @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));
        }

        /**
         * @param timeStarted Timestamp of the update run was started.
         * 
         * @return builder
         * 
         */
        public Builder timeStarted(@Nullable Output timeStarted) {
            $.timeStarted = timeStarted;
            return this;
        }

        /**
         * @param timeStarted Timestamp of the update run was started.
         * 
         * @return builder
         * 
         */
        public Builder timeStarted(String timeStarted) {
            return timeStarted(Output.of(timeStarted));
        }

        /**
         * @param updateName The name of the Update
         * 
         * @return builder
         * 
         */
        public Builder updateName(Output updateName) {
            $.updateName = updateName;
            return this;
        }

        /**
         * @param updateName The name of the Update
         * 
         * @return builder
         * 
         */
        public Builder updateName(String updateName) {
            return updateName(Output.of(updateName));
        }

        /**
         * @param updateRunName The name of the Update Run
         * 
         * @return builder
         * 
         */
        public Builder updateRunName(@Nullable Output updateRunName) {
            $.updateRunName = updateRunName;
            return this;
        }

        /**
         * @param updateRunName The name of the Update Run
         * 
         * @return builder
         * 
         */
        public Builder updateRunName(String updateRunName) {
            return updateRunName(Output.of(updateRunName));
        }

        public UpdateRunArgs build() {
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("UpdateRunArgs", "clusterName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("UpdateRunArgs", "resourceGroupName");
            }
            if ($.updateName == null) {
                throw new MissingRequiredPropertyException("UpdateRunArgs", "updateName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy