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

com.pulumi.kubernetes.autoscaling.v2.outputs.HorizontalPodAutoscalerCondition Maven / Gradle / Ivy

// *** 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.autoscaling.v2.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 HorizontalPodAutoscalerCondition {
    /**
     * @return lastTransitionTime is the last time the condition transitioned from one status to another
     * 
     */
    private @Nullable String lastTransitionTime;
    /**
     * @return message is a human-readable explanation containing details about the transition
     * 
     */
    private @Nullable String message;
    /**
     * @return reason is the reason for the condition's last transition.
     * 
     */
    private @Nullable String reason;
    /**
     * @return status is the status of the condition (True, False, Unknown)
     * 
     */
    private String status;
    /**
     * @return type describes the current condition
     * 
     */
    private String type;

    private HorizontalPodAutoscalerCondition() {}
    /**
     * @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 explanation containing details about the transition
     * 
     */
    public Optional message() {
        return Optional.ofNullable(this.message);
    }
    /**
     * @return reason is the reason for the condition's last transition.
     * 
     */
    public Optional reason() {
        return Optional.ofNullable(this.reason);
    }
    /**
     * @return status is the status of the condition (True, False, Unknown)
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return type describes the current condition
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(HorizontalPodAutoscalerCondition 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 String status;
        private String type;
        public Builder() {}
        public Builder(HorizontalPodAutoscalerCondition 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(String status) {
            this.status = Objects.requireNonNull(status);
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            this.type = Objects.requireNonNull(type);
            return this;
        }
        public HorizontalPodAutoscalerCondition build() {
            final var o = new HorizontalPodAutoscalerCondition();
            o.lastTransitionTime = lastTransitionTime;
            o.message = message;
            o.reason = reason;
            o.status = status;
            o.type = type;
            return o;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy