// *** 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.kubernetes.core.v1.inputs;

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;


/**
 * NodeCondition contains condition information for a node.
 * 
 */
public final class NodeConditionArgs extends com.pulumi.resources.ResourceArgs {

    public static final NodeConditionArgs Empty = new NodeConditionArgs();

    /**
     * Last time we got an update on a given condition.
     * 
     */
    @Import(name="lastHeartbeatTime")
    private @Nullable Output<String> lastHeartbeatTime;

    /**
     * @return Last time we got an update on a given condition.
     * 
     */
    public Optional<Output<String>> lastHeartbeatTime() {
        return Optional.ofNullable(this.lastHeartbeatTime);
    }

    /**
     * Last time the condition transit from one status to another.
     * 
     */
    @Import(name="lastTransitionTime")
    private @Nullable Output<String> lastTransitionTime;

    /**
     * @return Last time the condition transit from one status to another.
     * 
     */
    public Optional<Output<String>> lastTransitionTime() {
        return Optional.ofNullable(this.lastTransitionTime);
    }

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

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

    /**
     * (brief) reason for the condition&#39;s last transition.
     * 
     */
    @Import(name="reason")
    private @Nullable Output<String> reason;

    /**
     * @return (brief) reason for the condition&#39;s last transition.
     * 
     */
    public Optional<Output<String>> reason() {
        return Optional.ofNullable(this.reason);
    }

    /**
     * Status of the condition, one of True, False, Unknown.
     * 
     */
    @Import(name="status", required=true)
    private Output<String> status;

    /**
     * @return Status of the condition, one of True, False, Unknown.
     * 
     */
    public Output<String> status() {
        return this.status;
    }

    /**
     * Type of node condition.
     * 
     */
    @Import(name="type", required=true)
    private Output<String> type;

    /**
     * @return Type of node condition.
     * 
     */
    public Output<String> type() {
        return this.type;
    }

    private NodeConditionArgs() {}

    private NodeConditionArgs(NodeConditionArgs $) {
        this.lastHeartbeatTime = $.lastHeartbeatTime;
        this.lastTransitionTime = $.lastTransitionTime;
        this.message = $.message;
        this.reason = $.reason;
        this.status = $.status;
        this.type = $.type;
    }

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

    public static final class Builder {
        private NodeConditionArgs $;

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

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

        /**
         * @param lastHeartbeatTime Last time we got an update on a given condition.
         * 
         * @return builder
         * 
         */
        public Builder lastHeartbeatTime(@Nullable Output<String> lastHeartbeatTime) {
            $.lastHeartbeatTime = lastHeartbeatTime;
            return this;
        }

        /**
         * @param lastHeartbeatTime Last time we got an update on a given condition.
         * 
         * @return builder
         * 
         */
        public Builder lastHeartbeatTime(String lastHeartbeatTime) {
            return lastHeartbeatTime(Output.of(lastHeartbeatTime));
        }

        /**
         * @param lastTransitionTime Last time the condition transit from one status to another.
         * 
         * @return builder
         * 
         */
        public Builder lastTransitionTime(@Nullable Output<String> lastTransitionTime) {
            $.lastTransitionTime = lastTransitionTime;
            return this;
        }

        /**
         * @param lastTransitionTime Last time the condition transit from one status to another.
         * 
         * @return builder
         * 
         */
        public Builder lastTransitionTime(String lastTransitionTime) {
            return lastTransitionTime(Output.of(lastTransitionTime));
        }

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

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

        /**
         * @param reason (brief) reason for the condition&#39;s last transition.
         * 
         * @return builder
         * 
         */
        public Builder reason(@Nullable Output<String> reason) {
            $.reason = reason;
            return this;
        }

        /**
         * @param reason (brief) reason for the condition&#39;s last transition.
         * 
         * @return builder
         * 
         */
        public Builder reason(String reason) {
            return reason(Output.of(reason));
        }

        /**
         * @param status Status of the condition, one of True, False, Unknown.
         * 
         * @return builder
         * 
         */
        public Builder status(Output<String> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Status of the condition, one of True, False, Unknown.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param type Type of node condition.
         * 
         * @return builder
         * 
         */
        public Builder type(Output<String> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of node condition.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public NodeConditionArgs build() {
            $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null");
            $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null");
            return $;
        }
    }

}
