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

com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.FlowSchemaCondition 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.flowcontrol.v1beta1.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FlowSchemaCondition {
    /**
     * @return `lastTransitionTime` is the last time the condition transitioned from one status to another.
     * 
     */
    private @Nullable String lastTransitionTime;
    /**
     * @return `message` is a human-readable message indicating details about last transition.
     * 
     */
    private @Nullable String message;
    /**
     * @return `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
     * 
     */
    private @Nullable String reason;
    /**
     * @return `status` is the status of the condition. Can be True, False, Unknown. Required.
     * 
     */
    private @Nullable String status;
    /**
     * @return `type` is the type of the condition. Required.
     * 
     */
    private @Nullable String type;

    private FlowSchemaCondition() {}
    /**
     * @return `lastTransitionTime` is the last time the condition transitioned from one status to another.
     * 
     */
    public Optional lastTransitionTime() {
        return Optional.ofNullable(this.lastTransitionTime);
    }
    /**
     * @return `message` is a human-readable message indicating details about last transition.
     * 
     */
    public Optional message() {
        return Optional.ofNullable(this.message);
    }
    /**
     * @return `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
     * 
     */
    public Optional reason() {
        return Optional.ofNullable(this.reason);
    }
    /**
     * @return `status` is the status of the condition. Can be True, False, Unknown. Required.
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }
    /**
     * @return `type` is the type of the condition. Required.
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

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

    public static Builder builder(FlowSchemaCondition defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String lastTransitionTime;
        private @Nullable String message;
        private @Nullable String reason;
        private @Nullable String status;
        private @Nullable String type;
        public Builder() {}
        public Builder(FlowSchemaCondition defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.lastTransitionTime = defaults.lastTransitionTime;
    	      this.message = defaults.message;
    	      this.reason = defaults.reason;
    	      this.status = defaults.status;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder lastTransitionTime(@Nullable String lastTransitionTime) {

            this.lastTransitionTime = lastTransitionTime;
            return this;
        }
        @CustomType.Setter
        public Builder message(@Nullable String message) {

            this.message = message;
            return this;
        }
        @CustomType.Setter
        public Builder reason(@Nullable String reason) {

            this.reason = reason;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {

            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder type(@Nullable String type) {

            this.type = type;
            return this;
        }
        public FlowSchemaCondition build() {
            final var _resultValue = new FlowSchemaCondition();
            _resultValue.lastTransitionTime = lastTransitionTime;
            _resultValue.message = message;
            _resultValue.reason = reason;
            _resultValue.status = status;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy