io.k8s.api.core.v1.LifecycleHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s129 Show documentation
Show all versions of bl-k8s129 Show documentation
Programmatic resource management for Kubernetes
The newest version!
package io.k8s.api.core.v1;
/**
* LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
*/
public class LifecycleHandler {
public ExecAction exec;
public HTTPGetAction httpGet;
public SleepAction sleep;
public TCPSocketAction tcpSocket;
public LifecycleHandler exec(ExecAction exec) {
this.exec = exec;
return this;
}
public LifecycleHandler httpGet(HTTPGetAction httpGet) {
this.httpGet = httpGet;
return this;
}
public LifecycleHandler sleep(SleepAction sleep) {
this.sleep = sleep;
return this;
}
public LifecycleHandler tcpSocket(TCPSocketAction tcpSocket) {
this.tcpSocket = tcpSocket;
return this;
}
public static LifecycleHandler lifecycleHandler() {
return new LifecycleHandler();
}
}