// *** 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.gcp.workstations.inputs;

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


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

    public static final WorkstationClusterConditionArgs Empty = new WorkstationClusterConditionArgs();

    /**
     * (Output)
     * The status code, which should be an enum value of google.rpc.Code.
     * 
     */
    @Import(name="code")
    private @Nullable Output<Integer> code;

    /**
     * @return (Output)
     * The status code, which should be an enum value of google.rpc.Code.
     * 
     */
    public Optional<Output<Integer>> code() {
        return Optional.ofNullable(this.code);
    }

    /**
     * (Output)
     * A list of messages that carry the error details.
     * 
     */
    @Import(name="details")
    private @Nullable Output<List<Map<String,Object>>> details;

    /**
     * @return (Output)
     * A list of messages that carry the error details.
     * 
     */
    public Optional<Output<List<Map<String,Object>>>> details() {
        return Optional.ofNullable(this.details);
    }

    /**
     * (Output)
     * Human readable message indicating details about the current status.
     * 
     */
    @Import(name="message")
    private @Nullable Output<String> message;

    /**
     * @return (Output)
     * Human readable message indicating details about the current status.
     * 
     */
    public Optional<Output<String>> message() {
        return Optional.ofNullable(this.message);
    }

    private WorkstationClusterConditionArgs() {}

    private WorkstationClusterConditionArgs(WorkstationClusterConditionArgs $) {
        this.code = $.code;
        this.details = $.details;
        this.message = $.message;
    }

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

    public static final class Builder {
        private WorkstationClusterConditionArgs $;

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

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

        /**
         * @param code (Output)
         * The status code, which should be an enum value of google.rpc.Code.
         * 
         * @return builder
         * 
         */
        public Builder code(@Nullable Output<Integer> code) {
            $.code = code;
            return this;
        }

        /**
         * @param code (Output)
         * The status code, which should be an enum value of google.rpc.Code.
         * 
         * @return builder
         * 
         */
        public Builder code(Integer code) {
            return code(Output.of(code));
        }

        /**
         * @param details (Output)
         * A list of messages that carry the error details.
         * 
         * @return builder
         * 
         */
        public Builder details(@Nullable Output<List<Map<String,Object>>> details) {
            $.details = details;
            return this;
        }

        /**
         * @param details (Output)
         * A list of messages that carry the error details.
         * 
         * @return builder
         * 
         */
        public Builder details(List<Map<String,Object>> details) {
            return details(Output.of(details));
        }

        /**
         * @param details (Output)
         * A list of messages that carry the error details.
         * 
         * @return builder
         * 
         */
        public Builder details(Map<String,Object>... details) {
            return details(List.of(details));
        }

        /**
         * @param message (Output)
         * Human readable message indicating details about the current status.
         * 
         * @return builder
         * 
         */
        public Builder message(@Nullable Output<String> message) {
            $.message = message;
            return this;
        }

        /**
         * @param message (Output)
         * Human readable message indicating details about the current status.
         * 
         * @return builder
         * 
         */
        public Builder message(String message) {
            return message(Output.of(message));
        }

        public WorkstationClusterConditionArgs build() {
            return $;
        }
    }

}
