io.kubernetes.client.openapi.models.V1PodStatusFluentImpl Maven / Gradle / Ivy
/*
Copyright 2022 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.BaseFluent;
import io.kubernetes.client.fluent.Nested;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.function.Predicate;
/** Generated */
@SuppressWarnings(value = "unchecked")
public class V1PodStatusFluentImpl> extends BaseFluent
implements V1PodStatusFluent {
public V1PodStatusFluentImpl() {}
public V1PodStatusFluentImpl(io.kubernetes.client.openapi.models.V1PodStatus instance) {
this.withConditions(instance.getConditions());
this.withContainerStatuses(instance.getContainerStatuses());
this.withEphemeralContainerStatuses(instance.getEphemeralContainerStatuses());
this.withHostIP(instance.getHostIP());
this.withInitContainerStatuses(instance.getInitContainerStatuses());
this.withMessage(instance.getMessage());
this.withNominatedNodeName(instance.getNominatedNodeName());
this.withPhase(instance.getPhase());
this.withPodIP(instance.getPodIP());
this.withPodIPs(instance.getPodIPs());
this.withQosClass(instance.getQosClass());
this.withReason(instance.getReason());
this.withStartTime(instance.getStartTime());
}
private ArrayList conditions;
private java.util.ArrayList containerStatuses;
private java.util.ArrayList ephemeralContainerStatuses;
private String hostIP;
private java.util.ArrayList
initContainerStatuses;
private java.lang.String message;
private java.lang.String nominatedNodeName;
private java.lang.String phase;
private java.lang.String podIP;
private java.util.ArrayList podIPs;
private java.lang.String qosClass;
private java.lang.String reason;
private OffsetDateTime startTime;
public A addToConditions(Integer index, V1PodCondition item) {
if (this.conditions == null) {
this.conditions =
new java.util.ArrayList();
}
io.kubernetes.client.openapi.models.V1PodConditionBuilder builder =
new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item);
_visitables
.get("conditions")
.add(index >= 0 ? index : _visitables.get("conditions").size(), builder);
this.conditions.add(index >= 0 ? index : conditions.size(), builder);
return (A) this;
}
public A setToConditions(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodCondition item) {
if (this.conditions == null) {
this.conditions =
new java.util.ArrayList();
}
io.kubernetes.client.openapi.models.V1PodConditionBuilder builder =
new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item);
if (index < 0 || index >= _visitables.get("conditions").size()) {
_visitables.get("conditions").add(builder);
} else {
_visitables.get("conditions").set(index, builder);
}
if (index < 0 || index >= conditions.size()) {
conditions.add(builder);
} else {
conditions.set(index, builder);
}
return (A) this;
}
public A addToConditions(io.kubernetes.client.openapi.models.V1PodCondition... items) {
if (this.conditions == null) {
this.conditions =
new java.util.ArrayList();
}
for (io.kubernetes.client.openapi.models.V1PodCondition item : items) {
io.kubernetes.client.openapi.models.V1PodConditionBuilder builder =
new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item);
_visitables.get("conditions").add(builder);
this.conditions.add(builder);
}
return (A) this;
}
public A addAllToConditions(
Collection items) {
if (this.conditions == null) {
this.conditions =
new java.util.ArrayList();
}
for (io.kubernetes.client.openapi.models.V1PodCondition item : items) {
io.kubernetes.client.openapi.models.V1PodConditionBuilder builder =
new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item);
_visitables.get("conditions").add(builder);
this.conditions.add(builder);
}
return (A) this;
}
public A removeFromConditions(io.kubernetes.client.openapi.models.V1PodCondition... items) {
for (io.kubernetes.client.openapi.models.V1PodCondition item : items) {
io.kubernetes.client.openapi.models.V1PodConditionBuilder builder =
new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item);
_visitables.get("conditions").remove(builder);
if (this.conditions != null) {
this.conditions.remove(builder);
}
}
return (A) this;
}
public A removeAllFromConditions(
java.util.Collection items) {
for (io.kubernetes.client.openapi.models.V1PodCondition item : items) {
io.kubernetes.client.openapi.models.V1PodConditionBuilder builder =
new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item);
_visitables.get("conditions").remove(builder);
if (this.conditions != null) {
this.conditions.remove(builder);
}
}
return (A) this;
}
public A removeMatchingFromConditions(
Predicate predicate) {
if (conditions == null) return (A) this;
final Iterator each =
conditions.iterator();
final List visitables = _visitables.get("conditions");
while (each.hasNext()) {
io.kubernetes.client.openapi.models.V1PodConditionBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A) this;
}
/**
* This method has been deprecated, please use method buildConditions instead.
*
* @return The buildable object.
*/
@Deprecated
public List getConditions() {
return conditions != null ? build(conditions) : null;
}
public java.util.List buildConditions() {
return conditions != null ? build(conditions) : null;
}
public io.kubernetes.client.openapi.models.V1PodCondition buildCondition(
java.lang.Integer index) {
return this.conditions.get(index).build();
}
public io.kubernetes.client.openapi.models.V1PodCondition buildFirstCondition() {
return this.conditions.get(0).build();
}
public io.kubernetes.client.openapi.models.V1PodCondition buildLastCondition() {
return this.conditions.get(conditions.size() - 1).build();
}
public io.kubernetes.client.openapi.models.V1PodCondition buildMatchingCondition(
java.util.function.Predicate
predicate) {
for (io.kubernetes.client.openapi.models.V1PodConditionBuilder item : conditions) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public Boolean hasMatchingCondition(
java.util.function.Predicate
predicate) {
for (io.kubernetes.client.openapi.models.V1PodConditionBuilder item : conditions) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withConditions(
java.util.List conditions) {
if (this.conditions != null) {
_visitables.get("conditions").removeAll(this.conditions);
}
if (conditions != null) {
this.conditions = new java.util.ArrayList();
for (io.kubernetes.client.openapi.models.V1PodCondition item : conditions) {
this.addToConditions(item);
}
} else {
this.conditions = null;
}
return (A) this;
}
public A withConditions(io.kubernetes.client.openapi.models.V1PodCondition... conditions) {
if (this.conditions != null) {
this.conditions.clear();
}
if (conditions != null) {
for (io.kubernetes.client.openapi.models.V1PodCondition item : conditions) {
this.addToConditions(item);
}
}
return (A) this;
}
public java.lang.Boolean hasConditions() {
return conditions != null && !conditions.isEmpty();
}
public V1PodStatusFluent.ConditionsNested addNewCondition() {
return new V1PodStatusFluentImpl.ConditionsNestedImpl();
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested
addNewConditionLike(io.kubernetes.client.openapi.models.V1PodCondition item) {
return new V1PodStatusFluentImpl.ConditionsNestedImpl(-1, item);
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested
setNewConditionLike(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodCondition item) {
return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl.ConditionsNestedImpl(
index, item);
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested editCondition(
java.lang.Integer index) {
if (conditions.size() <= index)
throw new RuntimeException("Can't edit conditions. Index exceeds size.");
return setNewConditionLike(index, buildCondition(index));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested
editFirstCondition() {
if (conditions.size() == 0)
throw new RuntimeException("Can't edit first conditions. The list is empty.");
return setNewConditionLike(0, buildCondition(0));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested
editLastCondition() {
int index = conditions.size() - 1;
if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty.");
return setNewConditionLike(index, buildCondition(index));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested
editMatchingCondition(
java.util.function.Predicate
predicate) {
int index = -1;
for (int i = 0; i < conditions.size(); i++) {
if (predicate.test(conditions.get(i))) {
index = i;
break;
}
}
if (index < 0) throw new RuntimeException("Can't edit matching conditions. No match found.");
return setNewConditionLike(index, buildCondition(index));
}
public A addToContainerStatuses(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) {
if (this.containerStatuses == null) {
this.containerStatuses =
new java.util.ArrayList();
}
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables
.get("containerStatuses")
.add(index >= 0 ? index : _visitables.get("containerStatuses").size(), builder);
this.containerStatuses.add(index >= 0 ? index : containerStatuses.size(), builder);
return (A) this;
}
public A setToContainerStatuses(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) {
if (this.containerStatuses == null) {
this.containerStatuses =
new java.util.ArrayList();
}
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
if (index < 0 || index >= _visitables.get("containerStatuses").size()) {
_visitables.get("containerStatuses").add(builder);
} else {
_visitables.get("containerStatuses").set(index, builder);
}
if (index < 0 || index >= containerStatuses.size()) {
containerStatuses.add(builder);
} else {
containerStatuses.set(index, builder);
}
return (A) this;
}
public A addToContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) {
if (this.containerStatuses == null) {
this.containerStatuses =
new java.util.ArrayList();
}
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("containerStatuses").add(builder);
this.containerStatuses.add(builder);
}
return (A) this;
}
public A addAllToContainerStatuses(
java.util.Collection items) {
if (this.containerStatuses == null) {
this.containerStatuses =
new java.util.ArrayList();
}
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("containerStatuses").add(builder);
this.containerStatuses.add(builder);
}
return (A) this;
}
public A removeFromContainerStatuses(
io.kubernetes.client.openapi.models.V1ContainerStatus... items) {
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("containerStatuses").remove(builder);
if (this.containerStatuses != null) {
this.containerStatuses.remove(builder);
}
}
return (A) this;
}
public A removeAllFromContainerStatuses(
java.util.Collection items) {
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("containerStatuses").remove(builder);
if (this.containerStatuses != null) {
this.containerStatuses.remove(builder);
}
}
return (A) this;
}
public A removeMatchingFromContainerStatuses(
java.util.function.Predicate
predicate) {
if (containerStatuses == null) return (A) this;
final Iterator each =
containerStatuses.iterator();
final List visitables = _visitables.get("containerStatuses");
while (each.hasNext()) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A) this;
}
/**
* This method has been deprecated, please use method buildContainerStatuses instead.
*
* @return The buildable object.
*/
@java.lang.Deprecated
public java.util.List
getContainerStatuses() {
return containerStatuses != null ? build(containerStatuses) : null;
}
public java.util.List
buildContainerStatuses() {
return containerStatuses != null ? build(containerStatuses) : null;
}
public io.kubernetes.client.openapi.models.V1ContainerStatus buildContainerStatus(
java.lang.Integer index) {
return this.containerStatuses.get(index).build();
}
public io.kubernetes.client.openapi.models.V1ContainerStatus buildFirstContainerStatus() {
return this.containerStatuses.get(0).build();
}
public io.kubernetes.client.openapi.models.V1ContainerStatus buildLastContainerStatus() {
return this.containerStatuses.get(containerStatuses.size() - 1).build();
}
public io.kubernetes.client.openapi.models.V1ContainerStatus buildMatchingContainerStatus(
java.util.function.Predicate
predicate) {
for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item : containerStatuses) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public java.lang.Boolean hasMatchingContainerStatus(
java.util.function.Predicate
predicate) {
for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item : containerStatuses) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withContainerStatuses(
java.util.List containerStatuses) {
if (this.containerStatuses != null) {
_visitables.get("containerStatuses").removeAll(this.containerStatuses);
}
if (containerStatuses != null) {
this.containerStatuses = new java.util.ArrayList();
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : containerStatuses) {
this.addToContainerStatuses(item);
}
} else {
this.containerStatuses = null;
}
return (A) this;
}
public A withContainerStatuses(
io.kubernetes.client.openapi.models.V1ContainerStatus... containerStatuses) {
if (this.containerStatuses != null) {
this.containerStatuses.clear();
}
if (containerStatuses != null) {
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : containerStatuses) {
this.addToContainerStatuses(item);
}
}
return (A) this;
}
public java.lang.Boolean hasContainerStatuses() {
return containerStatuses != null && !containerStatuses.isEmpty();
}
public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatus() {
return new V1PodStatusFluentImpl.ContainerStatusesNestedImpl();
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested
addNewContainerStatusLike(io.kubernetes.client.openapi.models.V1ContainerStatus item) {
return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl
.ContainerStatusesNestedImpl(-1, item);
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested
setNewContainerStatusLike(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) {
return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl
.ContainerStatusesNestedImpl(index, item);
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested
editContainerStatus(java.lang.Integer index) {
if (containerStatuses.size() <= index)
throw new RuntimeException("Can't edit containerStatuses. Index exceeds size.");
return setNewContainerStatusLike(index, buildContainerStatus(index));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested
editFirstContainerStatus() {
if (containerStatuses.size() == 0)
throw new RuntimeException("Can't edit first containerStatuses. The list is empty.");
return setNewContainerStatusLike(0, buildContainerStatus(0));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested
editLastContainerStatus() {
int index = containerStatuses.size() - 1;
if (index < 0)
throw new RuntimeException("Can't edit last containerStatuses. The list is empty.");
return setNewContainerStatusLike(index, buildContainerStatus(index));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested
editMatchingContainerStatus(
java.util.function.Predicate
predicate) {
int index = -1;
for (int i = 0; i < containerStatuses.size(); i++) {
if (predicate.test(containerStatuses.get(i))) {
index = i;
break;
}
}
if (index < 0)
throw new RuntimeException("Can't edit matching containerStatuses. No match found.");
return setNewContainerStatusLike(index, buildContainerStatus(index));
}
public A addToEphemeralContainerStatuses(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) {
if (this.ephemeralContainerStatuses == null) {
this.ephemeralContainerStatuses =
new java.util.ArrayList();
}
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables
.get("ephemeralContainerStatuses")
.add(index >= 0 ? index : _visitables.get("ephemeralContainerStatuses").size(), builder);
this.ephemeralContainerStatuses.add(
index >= 0 ? index : ephemeralContainerStatuses.size(), builder);
return (A) this;
}
public A setToEphemeralContainerStatuses(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) {
if (this.ephemeralContainerStatuses == null) {
this.ephemeralContainerStatuses =
new java.util.ArrayList();
}
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
if (index < 0 || index >= _visitables.get("ephemeralContainerStatuses").size()) {
_visitables.get("ephemeralContainerStatuses").add(builder);
} else {
_visitables.get("ephemeralContainerStatuses").set(index, builder);
}
if (index < 0 || index >= ephemeralContainerStatuses.size()) {
ephemeralContainerStatuses.add(builder);
} else {
ephemeralContainerStatuses.set(index, builder);
}
return (A) this;
}
public A addToEphemeralContainerStatuses(
io.kubernetes.client.openapi.models.V1ContainerStatus... items) {
if (this.ephemeralContainerStatuses == null) {
this.ephemeralContainerStatuses =
new java.util.ArrayList();
}
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("ephemeralContainerStatuses").add(builder);
this.ephemeralContainerStatuses.add(builder);
}
return (A) this;
}
public A addAllToEphemeralContainerStatuses(
java.util.Collection items) {
if (this.ephemeralContainerStatuses == null) {
this.ephemeralContainerStatuses =
new java.util.ArrayList();
}
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("ephemeralContainerStatuses").add(builder);
this.ephemeralContainerStatuses.add(builder);
}
return (A) this;
}
public A removeFromEphemeralContainerStatuses(
io.kubernetes.client.openapi.models.V1ContainerStatus... items) {
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("ephemeralContainerStatuses").remove(builder);
if (this.ephemeralContainerStatuses != null) {
this.ephemeralContainerStatuses.remove(builder);
}
}
return (A) this;
}
public A removeAllFromEphemeralContainerStatuses(
java.util.Collection items) {
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("ephemeralContainerStatuses").remove(builder);
if (this.ephemeralContainerStatuses != null) {
this.ephemeralContainerStatuses.remove(builder);
}
}
return (A) this;
}
public A removeMatchingFromEphemeralContainerStatuses(
java.util.function.Predicate
predicate) {
if (ephemeralContainerStatuses == null) return (A) this;
final Iterator each =
ephemeralContainerStatuses.iterator();
final List visitables = _visitables.get("ephemeralContainerStatuses");
while (each.hasNext()) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A) this;
}
/**
* This method has been deprecated, please use method buildEphemeralContainerStatuses instead.
*
* @return The buildable object.
*/
@java.lang.Deprecated
public java.util.List
getEphemeralContainerStatuses() {
return ephemeralContainerStatuses != null ? build(ephemeralContainerStatuses) : null;
}
public java.util.List
buildEphemeralContainerStatuses() {
return ephemeralContainerStatuses != null ? build(ephemeralContainerStatuses) : null;
}
public io.kubernetes.client.openapi.models.V1ContainerStatus buildEphemeralContainerStatus(
java.lang.Integer index) {
return this.ephemeralContainerStatuses.get(index).build();
}
public io.kubernetes.client.openapi.models.V1ContainerStatus
buildFirstEphemeralContainerStatus() {
return this.ephemeralContainerStatuses.get(0).build();
}
public io.kubernetes.client.openapi.models.V1ContainerStatus buildLastEphemeralContainerStatus() {
return this.ephemeralContainerStatuses.get(ephemeralContainerStatuses.size() - 1).build();
}
public io.kubernetes.client.openapi.models.V1ContainerStatus
buildMatchingEphemeralContainerStatus(
java.util.function.Predicate
predicate) {
for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item :
ephemeralContainerStatuses) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public java.lang.Boolean hasMatchingEphemeralContainerStatus(
java.util.function.Predicate
predicate) {
for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item :
ephemeralContainerStatuses) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withEphemeralContainerStatuses(
java.util.List
ephemeralContainerStatuses) {
if (this.ephemeralContainerStatuses != null) {
_visitables.get("ephemeralContainerStatuses").removeAll(this.ephemeralContainerStatuses);
}
if (ephemeralContainerStatuses != null) {
this.ephemeralContainerStatuses = new java.util.ArrayList();
for (io.kubernetes.client.openapi.models.V1ContainerStatus item :
ephemeralContainerStatuses) {
this.addToEphemeralContainerStatuses(item);
}
} else {
this.ephemeralContainerStatuses = null;
}
return (A) this;
}
public A withEphemeralContainerStatuses(
io.kubernetes.client.openapi.models.V1ContainerStatus... ephemeralContainerStatuses) {
if (this.ephemeralContainerStatuses != null) {
this.ephemeralContainerStatuses.clear();
}
if (ephemeralContainerStatuses != null) {
for (io.kubernetes.client.openapi.models.V1ContainerStatus item :
ephemeralContainerStatuses) {
this.addToEphemeralContainerStatuses(item);
}
}
return (A) this;
}
public java.lang.Boolean hasEphemeralContainerStatuses() {
return ephemeralContainerStatuses != null && !ephemeralContainerStatuses.isEmpty();
}
public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralContainerStatus() {
return new V1PodStatusFluentImpl.EphemeralContainerStatusesNestedImpl();
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested
addNewEphemeralContainerStatusLike(
io.kubernetes.client.openapi.models.V1ContainerStatus item) {
return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl
.EphemeralContainerStatusesNestedImpl(-1, item);
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested
setNewEphemeralContainerStatusLike(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) {
return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl
.EphemeralContainerStatusesNestedImpl(index, item);
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested
editEphemeralContainerStatus(java.lang.Integer index) {
if (ephemeralContainerStatuses.size() <= index)
throw new RuntimeException("Can't edit ephemeralContainerStatuses. Index exceeds size.");
return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested
editFirstEphemeralContainerStatus() {
if (ephemeralContainerStatuses.size() == 0)
throw new RuntimeException("Can't edit first ephemeralContainerStatuses. The list is empty.");
return setNewEphemeralContainerStatusLike(0, buildEphemeralContainerStatus(0));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested
editLastEphemeralContainerStatus() {
int index = ephemeralContainerStatuses.size() - 1;
if (index < 0)
throw new RuntimeException("Can't edit last ephemeralContainerStatuses. The list is empty.");
return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested
editMatchingEphemeralContainerStatus(
java.util.function.Predicate
predicate) {
int index = -1;
for (int i = 0; i < ephemeralContainerStatuses.size(); i++) {
if (predicate.test(ephemeralContainerStatuses.get(i))) {
index = i;
break;
}
}
if (index < 0)
throw new RuntimeException("Can't edit matching ephemeralContainerStatuses. No match found.");
return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index));
}
public java.lang.String getHostIP() {
return this.hostIP;
}
public A withHostIP(java.lang.String hostIP) {
this.hostIP = hostIP;
return (A) this;
}
public java.lang.Boolean hasHostIP() {
return this.hostIP != null;
}
public A addToInitContainerStatuses(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) {
if (this.initContainerStatuses == null) {
this.initContainerStatuses =
new java.util.ArrayList();
}
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables
.get("initContainerStatuses")
.add(index >= 0 ? index : _visitables.get("initContainerStatuses").size(), builder);
this.initContainerStatuses.add(index >= 0 ? index : initContainerStatuses.size(), builder);
return (A) this;
}
public A setToInitContainerStatuses(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) {
if (this.initContainerStatuses == null) {
this.initContainerStatuses =
new java.util.ArrayList();
}
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
if (index < 0 || index >= _visitables.get("initContainerStatuses").size()) {
_visitables.get("initContainerStatuses").add(builder);
} else {
_visitables.get("initContainerStatuses").set(index, builder);
}
if (index < 0 || index >= initContainerStatuses.size()) {
initContainerStatuses.add(builder);
} else {
initContainerStatuses.set(index, builder);
}
return (A) this;
}
public A addToInitContainerStatuses(
io.kubernetes.client.openapi.models.V1ContainerStatus... items) {
if (this.initContainerStatuses == null) {
this.initContainerStatuses =
new java.util.ArrayList();
}
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("initContainerStatuses").add(builder);
this.initContainerStatuses.add(builder);
}
return (A) this;
}
public A addAllToInitContainerStatuses(
java.util.Collection items) {
if (this.initContainerStatuses == null) {
this.initContainerStatuses =
new java.util.ArrayList();
}
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("initContainerStatuses").add(builder);
this.initContainerStatuses.add(builder);
}
return (A) this;
}
public A removeFromInitContainerStatuses(
io.kubernetes.client.openapi.models.V1ContainerStatus... items) {
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("initContainerStatuses").remove(builder);
if (this.initContainerStatuses != null) {
this.initContainerStatuses.remove(builder);
}
}
return (A) this;
}
public A removeAllFromInitContainerStatuses(
java.util.Collection items) {
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder =
new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item);
_visitables.get("initContainerStatuses").remove(builder);
if (this.initContainerStatuses != null) {
this.initContainerStatuses.remove(builder);
}
}
return (A) this;
}
public A removeMatchingFromInitContainerStatuses(
java.util.function.Predicate
predicate) {
if (initContainerStatuses == null) return (A) this;
final Iterator each =
initContainerStatuses.iterator();
final List visitables = _visitables.get("initContainerStatuses");
while (each.hasNext()) {
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A) this;
}
/**
* This method has been deprecated, please use method buildInitContainerStatuses instead.
*
* @return The buildable object.
*/
@java.lang.Deprecated
public java.util.List
getInitContainerStatuses() {
return initContainerStatuses != null ? build(initContainerStatuses) : null;
}
public java.util.List
buildInitContainerStatuses() {
return initContainerStatuses != null ? build(initContainerStatuses) : null;
}
public io.kubernetes.client.openapi.models.V1ContainerStatus buildInitContainerStatus(
java.lang.Integer index) {
return this.initContainerStatuses.get(index).build();
}
public io.kubernetes.client.openapi.models.V1ContainerStatus buildFirstInitContainerStatus() {
return this.initContainerStatuses.get(0).build();
}
public io.kubernetes.client.openapi.models.V1ContainerStatus buildLastInitContainerStatus() {
return this.initContainerStatuses.get(initContainerStatuses.size() - 1).build();
}
public io.kubernetes.client.openapi.models.V1ContainerStatus buildMatchingInitContainerStatus(
java.util.function.Predicate
predicate) {
for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item :
initContainerStatuses) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public java.lang.Boolean hasMatchingInitContainerStatus(
java.util.function.Predicate
predicate) {
for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item :
initContainerStatuses) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withInitContainerStatuses(
java.util.List initContainerStatuses) {
if (this.initContainerStatuses != null) {
_visitables.get("initContainerStatuses").removeAll(this.initContainerStatuses);
}
if (initContainerStatuses != null) {
this.initContainerStatuses = new java.util.ArrayList();
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : initContainerStatuses) {
this.addToInitContainerStatuses(item);
}
} else {
this.initContainerStatuses = null;
}
return (A) this;
}
public A withInitContainerStatuses(
io.kubernetes.client.openapi.models.V1ContainerStatus... initContainerStatuses) {
if (this.initContainerStatuses != null) {
this.initContainerStatuses.clear();
}
if (initContainerStatuses != null) {
for (io.kubernetes.client.openapi.models.V1ContainerStatus item : initContainerStatuses) {
this.addToInitContainerStatuses(item);
}
}
return (A) this;
}
public java.lang.Boolean hasInitContainerStatuses() {
return initContainerStatuses != null && !initContainerStatuses.isEmpty();
}
public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatus() {
return new V1PodStatusFluentImpl.InitContainerStatusesNestedImpl();
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested
addNewInitContainerStatusLike(io.kubernetes.client.openapi.models.V1ContainerStatus item) {
return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl
.InitContainerStatusesNestedImpl(-1, item);
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested
setNewInitContainerStatusLike(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) {
return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl
.InitContainerStatusesNestedImpl(index, item);
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested
editInitContainerStatus(java.lang.Integer index) {
if (initContainerStatuses.size() <= index)
throw new RuntimeException("Can't edit initContainerStatuses. Index exceeds size.");
return setNewInitContainerStatusLike(index, buildInitContainerStatus(index));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested
editFirstInitContainerStatus() {
if (initContainerStatuses.size() == 0)
throw new RuntimeException("Can't edit first initContainerStatuses. The list is empty.");
return setNewInitContainerStatusLike(0, buildInitContainerStatus(0));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested
editLastInitContainerStatus() {
int index = initContainerStatuses.size() - 1;
if (index < 0)
throw new RuntimeException("Can't edit last initContainerStatuses. The list is empty.");
return setNewInitContainerStatusLike(index, buildInitContainerStatus(index));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested
editMatchingInitContainerStatus(
java.util.function.Predicate
predicate) {
int index = -1;
for (int i = 0; i < initContainerStatuses.size(); i++) {
if (predicate.test(initContainerStatuses.get(i))) {
index = i;
break;
}
}
if (index < 0)
throw new RuntimeException("Can't edit matching initContainerStatuses. No match found.");
return setNewInitContainerStatusLike(index, buildInitContainerStatus(index));
}
public java.lang.String getMessage() {
return this.message;
}
public A withMessage(java.lang.String message) {
this.message = message;
return (A) this;
}
public java.lang.Boolean hasMessage() {
return this.message != null;
}
public java.lang.String getNominatedNodeName() {
return this.nominatedNodeName;
}
public A withNominatedNodeName(java.lang.String nominatedNodeName) {
this.nominatedNodeName = nominatedNodeName;
return (A) this;
}
public java.lang.Boolean hasNominatedNodeName() {
return this.nominatedNodeName != null;
}
public java.lang.String getPhase() {
return this.phase;
}
public A withPhase(java.lang.String phase) {
this.phase = phase;
return (A) this;
}
public java.lang.Boolean hasPhase() {
return this.phase != null;
}
public java.lang.String getPodIP() {
return this.podIP;
}
public A withPodIP(java.lang.String podIP) {
this.podIP = podIP;
return (A) this;
}
public java.lang.Boolean hasPodIP() {
return this.podIP != null;
}
public A addToPodIPs(java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodIP item) {
if (this.podIPs == null) {
this.podIPs = new java.util.ArrayList();
}
io.kubernetes.client.openapi.models.V1PodIPBuilder builder =
new io.kubernetes.client.openapi.models.V1PodIPBuilder(item);
_visitables.get("podIPs").add(index >= 0 ? index : _visitables.get("podIPs").size(), builder);
this.podIPs.add(index >= 0 ? index : podIPs.size(), builder);
return (A) this;
}
public A setToPodIPs(java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodIP item) {
if (this.podIPs == null) {
this.podIPs = new java.util.ArrayList();
}
io.kubernetes.client.openapi.models.V1PodIPBuilder builder =
new io.kubernetes.client.openapi.models.V1PodIPBuilder(item);
if (index < 0 || index >= _visitables.get("podIPs").size()) {
_visitables.get("podIPs").add(builder);
} else {
_visitables.get("podIPs").set(index, builder);
}
if (index < 0 || index >= podIPs.size()) {
podIPs.add(builder);
} else {
podIPs.set(index, builder);
}
return (A) this;
}
public A addToPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items) {
if (this.podIPs == null) {
this.podIPs = new java.util.ArrayList();
}
for (io.kubernetes.client.openapi.models.V1PodIP item : items) {
io.kubernetes.client.openapi.models.V1PodIPBuilder builder =
new io.kubernetes.client.openapi.models.V1PodIPBuilder(item);
_visitables.get("podIPs").add(builder);
this.podIPs.add(builder);
}
return (A) this;
}
public A addAllToPodIPs(java.util.Collection items) {
if (this.podIPs == null) {
this.podIPs = new java.util.ArrayList();
}
for (io.kubernetes.client.openapi.models.V1PodIP item : items) {
io.kubernetes.client.openapi.models.V1PodIPBuilder builder =
new io.kubernetes.client.openapi.models.V1PodIPBuilder(item);
_visitables.get("podIPs").add(builder);
this.podIPs.add(builder);
}
return (A) this;
}
public A removeFromPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items) {
for (io.kubernetes.client.openapi.models.V1PodIP item : items) {
io.kubernetes.client.openapi.models.V1PodIPBuilder builder =
new io.kubernetes.client.openapi.models.V1PodIPBuilder(item);
_visitables.get("podIPs").remove(builder);
if (this.podIPs != null) {
this.podIPs.remove(builder);
}
}
return (A) this;
}
public A removeAllFromPodIPs(
java.util.Collection items) {
for (io.kubernetes.client.openapi.models.V1PodIP item : items) {
io.kubernetes.client.openapi.models.V1PodIPBuilder builder =
new io.kubernetes.client.openapi.models.V1PodIPBuilder(item);
_visitables.get("podIPs").remove(builder);
if (this.podIPs != null) {
this.podIPs.remove(builder);
}
}
return (A) this;
}
public A removeMatchingFromPodIPs(
java.util.function.Predicate predicate) {
if (podIPs == null) return (A) this;
final Iterator each = podIPs.iterator();
final List visitables = _visitables.get("podIPs");
while (each.hasNext()) {
io.kubernetes.client.openapi.models.V1PodIPBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A) this;
}
/**
* This method has been deprecated, please use method buildPodIPs instead.
*
* @return The buildable object.
*/
@java.lang.Deprecated
public java.util.List getPodIPs() {
return podIPs != null ? build(podIPs) : null;
}
public java.util.List buildPodIPs() {
return podIPs != null ? build(podIPs) : null;
}
public io.kubernetes.client.openapi.models.V1PodIP buildPodIP(java.lang.Integer index) {
return this.podIPs.get(index).build();
}
public io.kubernetes.client.openapi.models.V1PodIP buildFirstPodIP() {
return this.podIPs.get(0).build();
}
public io.kubernetes.client.openapi.models.V1PodIP buildLastPodIP() {
return this.podIPs.get(podIPs.size() - 1).build();
}
public io.kubernetes.client.openapi.models.V1PodIP buildMatchingPodIP(
java.util.function.Predicate predicate) {
for (io.kubernetes.client.openapi.models.V1PodIPBuilder item : podIPs) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public java.lang.Boolean hasMatchingPodIP(
java.util.function.Predicate predicate) {
for (io.kubernetes.client.openapi.models.V1PodIPBuilder item : podIPs) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withPodIPs(java.util.List podIPs) {
if (this.podIPs != null) {
_visitables.get("podIPs").removeAll(this.podIPs);
}
if (podIPs != null) {
this.podIPs = new java.util.ArrayList();
for (io.kubernetes.client.openapi.models.V1PodIP item : podIPs) {
this.addToPodIPs(item);
}
} else {
this.podIPs = null;
}
return (A) this;
}
public A withPodIPs(io.kubernetes.client.openapi.models.V1PodIP... podIPs) {
if (this.podIPs != null) {
this.podIPs.clear();
}
if (podIPs != null) {
for (io.kubernetes.client.openapi.models.V1PodIP item : podIPs) {
this.addToPodIPs(item);
}
}
return (A) this;
}
public java.lang.Boolean hasPodIPs() {
return podIPs != null && !podIPs.isEmpty();
}
public V1PodStatusFluent.PodIPsNested addNewPodIP() {
return new V1PodStatusFluentImpl.PodIPsNestedImpl();
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested addNewPodIPLike(
io.kubernetes.client.openapi.models.V1PodIP item) {
return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl.PodIPsNestedImpl(-1, item);
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested setNewPodIPLike(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodIP item) {
return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl.PodIPsNestedImpl(
index, item);
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editPodIP(
java.lang.Integer index) {
if (podIPs.size() <= index)
throw new RuntimeException("Can't edit podIPs. Index exceeds size.");
return setNewPodIPLike(index, buildPodIP(index));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editFirstPodIP() {
if (podIPs.size() == 0)
throw new RuntimeException("Can't edit first podIPs. The list is empty.");
return setNewPodIPLike(0, buildPodIP(0));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editLastPodIP() {
int index = podIPs.size() - 1;
if (index < 0) throw new RuntimeException("Can't edit last podIPs. The list is empty.");
return setNewPodIPLike(index, buildPodIP(index));
}
public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editMatchingPodIP(
java.util.function.Predicate predicate) {
int index = -1;
for (int i = 0; i < podIPs.size(); i++) {
if (predicate.test(podIPs.get(i))) {
index = i;
break;
}
}
if (index < 0) throw new RuntimeException("Can't edit matching podIPs. No match found.");
return setNewPodIPLike(index, buildPodIP(index));
}
public java.lang.String getQosClass() {
return this.qosClass;
}
public A withQosClass(java.lang.String qosClass) {
this.qosClass = qosClass;
return (A) this;
}
public java.lang.Boolean hasQosClass() {
return this.qosClass != null;
}
public java.lang.String getReason() {
return this.reason;
}
public A withReason(java.lang.String reason) {
this.reason = reason;
return (A) this;
}
public java.lang.Boolean hasReason() {
return this.reason != null;
}
public java.time.OffsetDateTime getStartTime() {
return this.startTime;
}
public A withStartTime(java.time.OffsetDateTime startTime) {
this.startTime = startTime;
return (A) this;
}
public java.lang.Boolean hasStartTime() {
return this.startTime != null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
V1PodStatusFluentImpl that = (V1PodStatusFluentImpl) o;
if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null)
return false;
if (containerStatuses != null
? !containerStatuses.equals(that.containerStatuses)
: that.containerStatuses != null) return false;
if (ephemeralContainerStatuses != null
? !ephemeralContainerStatuses.equals(that.ephemeralContainerStatuses)
: that.ephemeralContainerStatuses != null) return false;
if (hostIP != null ? !hostIP.equals(that.hostIP) : that.hostIP != null) return false;
if (initContainerStatuses != null
? !initContainerStatuses.equals(that.initContainerStatuses)
: that.initContainerStatuses != null) return false;
if (message != null ? !message.equals(that.message) : that.message != null) return false;
if (nominatedNodeName != null
? !nominatedNodeName.equals(that.nominatedNodeName)
: that.nominatedNodeName != null) return false;
if (phase != null ? !phase.equals(that.phase) : that.phase != null) return false;
if (podIP != null ? !podIP.equals(that.podIP) : that.podIP != null) return false;
if (podIPs != null ? !podIPs.equals(that.podIPs) : that.podIPs != null) return false;
if (qosClass != null ? !qosClass.equals(that.qosClass) : that.qosClass != null) return false;
if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false;
if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null)
return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(
conditions,
containerStatuses,
ephemeralContainerStatuses,
hostIP,
initContainerStatuses,
message,
nominatedNodeName,
phase,
podIP,
podIPs,
qosClass,
reason,
startTime,
super.hashCode());
}
public java.lang.String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (conditions != null && !conditions.isEmpty()) {
sb.append("conditions:");
sb.append(conditions + ",");
}
if (containerStatuses != null && !containerStatuses.isEmpty()) {
sb.append("containerStatuses:");
sb.append(containerStatuses + ",");
}
if (ephemeralContainerStatuses != null && !ephemeralContainerStatuses.isEmpty()) {
sb.append("ephemeralContainerStatuses:");
sb.append(ephemeralContainerStatuses + ",");
}
if (hostIP != null) {
sb.append("hostIP:");
sb.append(hostIP + ",");
}
if (initContainerStatuses != null && !initContainerStatuses.isEmpty()) {
sb.append("initContainerStatuses:");
sb.append(initContainerStatuses + ",");
}
if (message != null) {
sb.append("message:");
sb.append(message + ",");
}
if (nominatedNodeName != null) {
sb.append("nominatedNodeName:");
sb.append(nominatedNodeName + ",");
}
if (phase != null) {
sb.append("phase:");
sb.append(phase + ",");
}
if (podIP != null) {
sb.append("podIP:");
sb.append(podIP + ",");
}
if (podIPs != null && !podIPs.isEmpty()) {
sb.append("podIPs:");
sb.append(podIPs + ",");
}
if (qosClass != null) {
sb.append("qosClass:");
sb.append(qosClass + ",");
}
if (reason != null) {
sb.append("reason:");
sb.append(reason + ",");
}
if (startTime != null) {
sb.append("startTime:");
sb.append(startTime);
}
sb.append("}");
return sb.toString();
}
class ConditionsNestedImpl
extends V1PodConditionFluentImpl>
implements io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested,
Nested {
ConditionsNestedImpl(java.lang.Integer index, V1PodCondition item) {
this.index = index;
this.builder = new V1PodConditionBuilder(this, item);
}
ConditionsNestedImpl() {
this.index = -1;
this.builder = new io.kubernetes.client.openapi.models.V1PodConditionBuilder(this);
}
io.kubernetes.client.openapi.models.V1PodConditionBuilder builder;
java.lang.Integer index;
public N and() {
return (N) V1PodStatusFluentImpl.this.setToConditions(index, builder.build());
}
public N endCondition() {
return and();
}
}
class ContainerStatusesNestedImpl
extends V1ContainerStatusFluentImpl>
implements io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested,
io.kubernetes.client.fluent.Nested {
ContainerStatusesNestedImpl(java.lang.Integer index, V1ContainerStatus item) {
this.index = index;
this.builder = new V1ContainerStatusBuilder(this, item);
}
ContainerStatusesNestedImpl() {
this.index = -1;
this.builder = new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(this);
}
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder;
java.lang.Integer index;
public N and() {
return (N) V1PodStatusFluentImpl.this.setToContainerStatuses(index, builder.build());
}
public N endContainerStatus() {
return and();
}
}
class EphemeralContainerStatusesNestedImpl
extends V1ContainerStatusFluentImpl>
implements io.kubernetes.client.openapi.models.V1PodStatusFluent
.EphemeralContainerStatusesNested<
N>,
io.kubernetes.client.fluent.Nested {
EphemeralContainerStatusesNestedImpl(java.lang.Integer index, V1ContainerStatus item) {
this.index = index;
this.builder = new V1ContainerStatusBuilder(this, item);
}
EphemeralContainerStatusesNestedImpl() {
this.index = -1;
this.builder = new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(this);
}
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder;
java.lang.Integer index;
public N and() {
return (N) V1PodStatusFluentImpl.this.setToEphemeralContainerStatuses(index, builder.build());
}
public N endEphemeralContainerStatus() {
return and();
}
}
class InitContainerStatusesNestedImpl
extends V1ContainerStatusFluentImpl>
implements io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested<
N>,
io.kubernetes.client.fluent.Nested {
InitContainerStatusesNestedImpl(java.lang.Integer index, V1ContainerStatus item) {
this.index = index;
this.builder = new V1ContainerStatusBuilder(this, item);
}
InitContainerStatusesNestedImpl() {
this.index = -1;
this.builder = new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(this);
}
io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder;
java.lang.Integer index;
public N and() {
return (N) V1PodStatusFluentImpl.this.setToInitContainerStatuses(index, builder.build());
}
public N endInitContainerStatus() {
return and();
}
}
class PodIPsNestedImpl extends V1PodIPFluentImpl>
implements io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested,
io.kubernetes.client.fluent.Nested {
PodIPsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodIP item) {
this.index = index;
this.builder = new V1PodIPBuilder(this, item);
}
PodIPsNestedImpl() {
this.index = -1;
this.builder = new io.kubernetes.client.openapi.models.V1PodIPBuilder(this);
}
io.kubernetes.client.openapi.models.V1PodIPBuilder builder;
java.lang.Integer index;
public N and() {
return (N) V1PodStatusFluentImpl.this.setToPodIPs(index, builder.build());
}
public N endPodIP() {
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy