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

com.pulumi.kubernetes.apps.v1.inputs.DeploymentConditionArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
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.kubernetes.apps.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * DeploymentCondition describes the state of a deployment at a certain point.
 * 
 */
public final class DeploymentConditionArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentConditionArgs Empty = new DeploymentConditionArgs();

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

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

    /**
     * The last time this condition was updated.
     * 
     */
    @Import(name="lastUpdateTime")
    private @Nullable Output lastUpdateTime;

    /**
     * @return The last time this condition was updated.
     * 
     */
    public Optional> lastUpdateTime() {
        return Optional.ofNullable(this.lastUpdateTime);
    }

    /**
     * A human readable message indicating details about the transition.
     * 
     */
    @Import(name="message")
    private @Nullable Output message;

    /**
     * @return A human readable message indicating details about the transition.
     * 
     */
    public Optional> message() {
        return Optional.ofNullable(this.message);
    }

    /**
     * The reason for the condition's last transition.
     * 
     */
    @Import(name="reason")
    private @Nullable Output reason;

    /**
     * @return The reason for the condition's last transition.
     * 
     */
    public Optional> reason() {
        return Optional.ofNullable(this.reason);
    }

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

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

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

    /**
     * @return Type of deployment condition.
     * 
     */
    public Output type() {
        return this.type;
    }

    private DeploymentConditionArgs() {}

    private DeploymentConditionArgs(DeploymentConditionArgs $) {
        this.lastTransitionTime = $.lastTransitionTime;
        this.lastUpdateTime = $.lastUpdateTime;
        this.message = $.message;
        this.reason = $.reason;
        this.status = $.status;
        this.type = $.type;
    }

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

    public static final class Builder {
        private DeploymentConditionArgs $;

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

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

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

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

        /**
         * @param lastUpdateTime The last time this condition was updated.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdateTime(@Nullable Output lastUpdateTime) {
            $.lastUpdateTime = lastUpdateTime;
            return this;
        }

        /**
         * @param lastUpdateTime The last time this condition was updated.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdateTime(String lastUpdateTime) {
            return lastUpdateTime(Output.of(lastUpdateTime));
        }

        /**
         * @param message A human readable message indicating details about the transition.
         * 
         * @return builder
         * 
         */
        public Builder message(@Nullable Output message) {
            $.message = message;
            return this;
        }

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

        /**
         * @param reason The reason for the condition's last transition.
         * 
         * @return builder
         * 
         */
        public Builder reason(@Nullable Output reason) {
            $.reason = reason;
            return this;
        }

        /**
         * @param reason The reason for the condition'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 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 deployment condition.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

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

        public DeploymentConditionArgs build() {
            if ($.status == null) {
                throw new MissingRequiredPropertyException("DeploymentConditionArgs", "status");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("DeploymentConditionArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy