
io.kubernetes.client.openapi.models.V1ContainerStateTerminatedBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1ContainerStateTerminatedBuilder extends V1ContainerStateTerminatedFluentImpl implements VisitableBuilder {
V1ContainerStateTerminatedFluent> fluent;
Boolean validationEnabled;
public V1ContainerStateTerminatedBuilder() {
this(true);
}
public V1ContainerStateTerminatedBuilder(Boolean validationEnabled) {
this(new V1ContainerStateTerminated(), validationEnabled);
}
public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent> fluent) {
this(fluent, true);
}
public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent> fluent,Boolean validationEnabled) {
this(fluent, new V1ContainerStateTerminated(), validationEnabled);
}
public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent> fluent,V1ContainerStateTerminated instance) {
this(fluent, instance, true);
}
public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent> fluent,V1ContainerStateTerminated instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withContainerID(instance.getContainerID());
fluent.withExitCode(instance.getExitCode());
fluent.withFinishedAt(instance.getFinishedAt());
fluent.withMessage(instance.getMessage());
fluent.withReason(instance.getReason());
fluent.withSignal(instance.getSignal());
fluent.withStartedAt(instance.getStartedAt());
this.validationEnabled = validationEnabled;
}
public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminated instance) {
this(instance,true);
}
public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminated instance,Boolean validationEnabled) {
this.fluent = this;
this.withContainerID(instance.getContainerID());
this.withExitCode(instance.getExitCode());
this.withFinishedAt(instance.getFinishedAt());
this.withMessage(instance.getMessage());
this.withReason(instance.getReason());
this.withSignal(instance.getSignal());
this.withStartedAt(instance.getStartedAt());
this.validationEnabled = validationEnabled;
}
public V1ContainerStateTerminated build() {
V1ContainerStateTerminated buildable = new V1ContainerStateTerminated();
buildable.setContainerID(fluent.getContainerID());
buildable.setExitCode(fluent.getExitCode());
buildable.setFinishedAt(fluent.getFinishedAt());
buildable.setMessage(fluent.getMessage());
buildable.setReason(fluent.getReason());
buildable.setSignal(fluent.getSignal());
buildable.setStartedAt(fluent.getStartedAt());
return buildable;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V1ContainerStateTerminatedBuilder that = (V1ContainerStateTerminatedBuilder) o;
if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;
if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(fluent, validationEnabled, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy