io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s130 Show documentation
Show all versions of bl-k8s130 Show documentation
Programmatic resource management for Kubernetes
package io.k8s.api.autoscaling.v2;
import java.lang.String;
/**
* HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.
*/
public class HorizontalPodAutoscalerCondition {
public String lastTransitionTime;
public String message;
public String reason;
public String status;
public String type;
/**
* Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
*/
public HorizontalPodAutoscalerCondition lastTransitionTime(String lastTransitionTime) {
this.lastTransitionTime = lastTransitionTime;
return this;
}
/**
* message is a human-readable explanation containing details about the transition
*/
public HorizontalPodAutoscalerCondition message(String message) {
this.message = message;
return this;
}
/**
* reason is the reason for the condition's last transition.
*/
public HorizontalPodAutoscalerCondition reason(String reason) {
this.reason = reason;
return this;
}
/**
* status is the status of the condition (True, False, Unknown)
*/
public HorizontalPodAutoscalerCondition status(String status) {
this.status = status;
return this;
}
/**
* type describes the current condition
*/
public HorizontalPodAutoscalerCondition type(String type) {
this.type = type;
return this;
}
public static HorizontalPodAutoscalerCondition horizontalPodAutoscalerCondition() {
return new HorizontalPodAutoscalerCondition();
}
}