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

com.pulumi.azurenative.devhub.inputs.WorkflowRunArgs 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.devhub.inputs;

import com.pulumi.azurenative.devhub.enums.WorkflowRunStatus;
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;


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

    public static final WorkflowRunArgs Empty = new WorkflowRunArgs();

    /**
     * Describes the status of the workflow run
     * 
     */
    @Import(name="workflowRunStatus")
    private @Nullable Output> workflowRunStatus;

    /**
     * @return Describes the status of the workflow run
     * 
     */
    public Optional>> workflowRunStatus() {
        return Optional.ofNullable(this.workflowRunStatus);
    }

    private WorkflowRunArgs() {}

    private WorkflowRunArgs(WorkflowRunArgs $) {
        this.workflowRunStatus = $.workflowRunStatus;
    }

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

    public static final class Builder {
        private WorkflowRunArgs $;

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

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

        /**
         * @param workflowRunStatus Describes the status of the workflow run
         * 
         * @return builder
         * 
         */
        public Builder workflowRunStatus(@Nullable Output> workflowRunStatus) {
            $.workflowRunStatus = workflowRunStatus;
            return this;
        }

        /**
         * @param workflowRunStatus Describes the status of the workflow run
         * 
         * @return builder
         * 
         */
        public Builder workflowRunStatus(Either workflowRunStatus) {
            return workflowRunStatus(Output.of(workflowRunStatus));
        }

        /**
         * @param workflowRunStatus Describes the status of the workflow run
         * 
         * @return builder
         * 
         */
        public Builder workflowRunStatus(String workflowRunStatus) {
            return workflowRunStatus(Either.ofLeft(workflowRunStatus));
        }

        /**
         * @param workflowRunStatus Describes the status of the workflow run
         * 
         * @return builder
         * 
         */
        public Builder workflowRunStatus(WorkflowRunStatus workflowRunStatus) {
            return workflowRunStatus(Either.ofRight(workflowRunStatus));
        }

        public WorkflowRunArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy